Answer:
![y=(q)/(p)x](https://img.qammunity.org/2019/formulas/mathematics/high-school/pb4njm0lradti8sbx51sfxxgp1s87bc2nl.png)
Explanation:
First we find the slope. The formula for slope is
![m=(y_2-y_1)/(x_2-x_1)](https://img.qammunity.org/2019/formulas/mathematics/middle-school/25uxp4sblay2143idvgkz738ukrk1vzo5g.png)
Using our two points, we have
m = (q--q)/(p--p) = (q+q)/(p+p) = 2q/2p = q/p
Point-slope form of an equation is
![y-y_1=m(x-x_1)](https://img.qammunity.org/2019/formulas/mathematics/college/lob8zuuisy2ohheuctatxwwco4ukatcrj3.png)
Using the first point as (x₁, y₁) and our value for m, we have
y - -q = (q/p)(x - - p)
y + q = (q/p)(x + p)
Using the distributive property, we have
y + q = (q/p)x + (q/p)p
y + q = (q/p)x + (q/p)(p/1)
y + q = (q/p)x + qp/p
y + q = (q/p)x + q
Subtract q from each side:
y + q - q = (q/p)x + q - q
y = (q/p)x