Respuesta :

let us first calculate the slope:

[tex]m=\frac{6-3}{-1--2}=\frac{3}{1}=3[/tex]

having the slope, we can use the slope-point equation and we get that

[tex]\begin{gathered} y-12=3(x-1)=3x-3 \\ y=3x-3+12=3x+9 \end{gathered}[/tex]

so g(x)=3x+9