Points
and
are defined therefore we have all data we need to construct equation.
Linear function has a form of,

First calculate the slope a.

Now plug in the coordinates of either one of the points into the linear function. I'll pick point X.

Now just solve for b.

The equation is therefore,

Hope this helps.
r3t40