The equation of a straight line is given as y=mx+b
where m = the slope of the line
b = intercept
Given points A(3, 12) and B(5, 22), the slope = 22−125−3
= 102 = 5
Hence, the equation of the line is y=5x+2.