Two functions are shown in the table below:

f(x) = −x^2 + 4x + 12
g(x) = x + 8

Complete the table, then select the value that is a solution to f(x) = g(x).

A) x = 3
B) x = 4
C) x = 5
D) x = 6