Suppose for all integers x, there are two functions f and g such that f(x) + f(x - 1) - 1 = 0 and g(x) = x2. If f(x2 - x) = 5, then the value of the sum f(g(5)) + g(f(5)) is