Explanation:
Hey there!
We generally use double point formula for the equation of a st.line passing through points.
Here,
(0,-2) and (2,8) are two points.
Using two point formula,
![(y - y1) = (y2 - y1)/(x2 - x1) (x - x1)](https://img.qammunity.org/2021/formulas/mathematics/high-school/rezrylcj4va7q27hgywrrbhkymjt7x87dq.png)
Put all values.
![(y + 2) = (8 + 2)/(2 - 0) (x - 0)](https://img.qammunity.org/2021/formulas/mathematics/college/xy9kx432lnrvjq87y32j319y5u7mclfh8x.png)
Simplify them to get answer.
![(y + 2) = 5(x - 0)](https://img.qammunity.org/2021/formulas/mathematics/college/v27lh4mbb3ahoeyuwv8pmwu7udws3ccegu.png)
![y + 2 = 5x](https://img.qammunity.org/2021/formulas/mathematics/college/f4daohbrz2ro2taq0xjizq0e8ezkwerew0.png)
![y = 5x - 2](https://img.qammunity.org/2021/formulas/mathematics/college/5540dgx5dyr4zhyfq1onsuq15jzs4i9gf5.png)
Therefore therequired equation is y = 5x-2.
Hope it helps...