Answer:
p = -2
q = -3
Step-by-step explanation:
Let us get the equation of the two graphs
General equation form is;
y = mx + b
m is slope and b is the y-intercept
For the first one;
y intercept is 1
So the equation is;
y = mx + 1
The x-intercept is -2
the value of y at the x-intercept is 0
0 = -2m + 1
1 = 2m
m = 1/2
so;
1/2 * p
p/2
q added to y-intercept;
q + 1
Let us get the equation of the second plot
y-intercept is -2
Equation is;
y = mx - 2
We can get slope using x-intercept
x-intercept is -2
0 = -2m - 2
2m = -2
m = -1
So;
p/2 = -1
p = 2 * -1 = -2
For the value of q;
q + 1 = -2
q = -2-1 = -3