For this case, what you must do is to graph both functions in the same coordinate plane and verify where they are cut.
The points where they are cut will be solutions for f (x) = g (x).
This particular function is cut into two points:
(0, 2)
(1, 3)
Therefore, the solution for f (x) = g (x) is
x = 0
x = 1
answer
the solutions to the equation are
x = 0
x = 1