Question: how to calculate the intersection of two lines?
Answer: First we need the equations of the two lines. ... 
Then, since at the point of intersection, the two equations will have the same values of x and y, we set the two equations equal to each other.