To wrie a equation of any line at least 2 points are required.
now....for writing equation chose any 2 given points.
let . one of them be (X1,Y1) and another be (X2,Y2)
now .....put the values of X1,Y1,X2 and Y2 in this formula and u will get required equation of line.