Given two (different) points, there is only one line passing through them. So, the linear equation modelling your dataset would be the line passing through the two data points.
In order to find the line, you can use the following equaiton: given two points , the line passing through them is given by
For example, given the points and , you have
Now, if you want, you can rearrange this in the form