May 2013 SAT Section 7 #18 Help, Please

<p>Please give explanation of how to solve. I do not know how to add the graph, if needed, please advise of what I can add. Thank you.
The complete graph of the function G is shown above. For how many values of p does g(p) =2? Thank you so very much.</p>