The equation of a line passing through the point of intersection of the lines x=0 and y=0 and through the point (2, 2), is:
The given lines are equations of the x-axis and the y-axis.
Hence, the point of intersection is (0, 0).
Thus, the equation of line passing through the points (0, 0) and (2, 2) can be found by using the two point form of a line.
(y−0)=(2−0)(2−0)(x−0)
⟹y=x