The equation of line when two points are given is;

(x-x

in the given question;

(x

(x

Put values in general equation;

(x - 0) / (2- 0) = (y - 0)/(-2- 0)

x / 2 = y/ -2

-2x = 2y

Dividing by 2 on both sides

y = -x

This is the required equation of line. It is a straight line and present in second and fourth quadrant.

(x-x

_{1})/(x_{2}-X_{1}) = (y-y_{1})/(y_{2}-y_{1})in the given question;

(x

_{1}, y_{1}) = origin = (0, 0)(x

_{2}, y_{2}) = (2, -2)Put values in general equation;

(x - 0) / (2- 0) = (y - 0)/(-2- 0)

x / 2 = y/ -2

-2x = 2y

Dividing by 2 on both sides

y = -x

This is the required equation of line. It is a straight line and present in second and fourth quadrant.