(x+3)2
you need to substitute x in function g(x) with the entire function of f(x)
If there is a solution(s) they will be the point(s) of intersection on the graph.
If there are infinite solutions there will be only one line or curve.
If the lines are parallel there is no solution.