Let y=ax+b be the equation of the line with x-intercept 2 and y-intercept −12. What are a and b values?

x intercept is when y is zero

0=a2+b

y intercept is when x is zero
-12=o+b

solve now for a and b.
b=-12
a=6? check it.