You can formulate an equation of the line given two points using the two-point slope form:
m = (y2-y1) / (x2-x1)
Wherein, after plugging in the values, it will now be on the form:
y = mx + b
I hope my answer has come to your help. God bless and have a nice day ahead!