By the Intercept form of an equation,
p = 1 (Intersection Point of line r and the x-axis), q = -2 (Intersection Point of line r and the y-axis)
[tex] \frac{x}{p} \: + \: \frac{y}{q} \: = \: 1[/tex]
[tex]qx \: + \: py \: = \: pq[/tex]
[tex]( - 2)x \: + \: (1)y \: = \: ( - 2)(1)[/tex]
[tex] - 2x \: + \: y \: = \: - 2[/tex]
[tex]y \: = \: 2x \: - \: 2[/tex]
[tex]y \: = \: (2)x \: + \: ( - 2)[/tex]
Where,
m = 2, b = -2.