To find the equation of the line we just need to find the beta constants. In order to do this we have (they provided us with) the following system of equations:

Let us subtract the second equation to the first one:
This implies that

Now, let us replace this value we just got into the second equation to find beta_0:

At last,

Then, the equation of the line is just
