given f(x)=5x+2 solve for x when g(x) =7