The first thing that shoyuld be noted is that you have linear functions here : straight lines in your graph
Answer:

Step-by-step explanation:
We can rewrite the question as (x-5)*(x-5).
Using the FOIL Method (First, Outside, Inside, Last):

This simplifies to 
Multiply it out
x^2 + 4x -8x -32
Combine like terms
x^2 -4x - 32
The value of x in terms of p is 15/p.
The value of x when p is -5 is -3.
Pls tell me if i’m wrong in any way!