Hey guys!

Here's a question on a math test (with solutions) that I don't understand very well:

So for the first step, i understand what they did, and how they got the point on the graph.

For the second step, i see they pulled out and i understand how they get but i dont understand how they got and

could anyone help me with that?