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 [tex] A = (A_x, A_y)\ ,B=(B_x,B_y) [/tex], the line passing through them is given by
[tex] \dfrac{y-A_y}{B_y-A_y} = \dfrac{x-A_x}{B_x-A_x} [/tex]
For example, given the points [tex] A = (1,1) [/tex] and [tex] B = (5,7) [/tex], you have
[tex] \dfrac{y-1}{7-1} = \dfrac{x-1}{5-1} \iff \dfrac{y-1}{6} = \dfrac{x-1}{4} \iff 4(y-1) = 6(x-1)[/tex]
Now, if you want, you can rearrange this in the form
[tex] 4y-4 = 6x-6 \iff 4y = 6x-2 \iff y = \dfrac{3x}{2} - \dfrac{1}{2} [/tex]