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, 

Put all values. 

Simplify them to get answer. 



Therefore therequired equation is y = 5x-2.
Hope it helps...