This is using point-slope form, I don’t know if you know how to do that but you basically take both coordinates and subtract y2-y1/x2-x1=(answer) which are labeled in the picture. Then you choose a coordinate to substitute into the point-slope equation so I used the first coordinate in the picture. Then you distribute and the rest is shown. Hope this helps