Domain x,  Range y,y-12

Solve for fx=2

First solve for the right branch.

x2=2

So x=2±, but from the graph we see that -2 is impossible so we reject it as a solution

Now solve for the left branch.

-12x=2

x=-4

So our solutions are x=2,x=-4