Got this question for homework. I don't know how to solve it, got a few more like this so I would like to see how to do it more than the actual answer.

Part 1
Subtracting 5 from both sides yields
[tex]x=f(x)-5[/tex]
Part 2
When the output, f(x) is 2, we can substitute that in to obtain
[tex]x=2-5=-3[/tex]