The equation of a straight line is given as y=mx+by = mx + by=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\frac{22 - 12}{5 - 3}5−322−12
= 102\frac{10}{2}210 = 5
Hence, the equation of the line is y=5x+2y = 5x + 2y=5x+2.