http://prntscr.com/mtor0m
Notice that when x = 3 and x = 7 then f(x) = g(x)
So....those are the solutions