Algebra or Geometry?
On an $x,y$ axis draw a line from $0,40$ diagonally down, to the right, to $10,0$. Now draw a line from $0,27$ to $10,27$ intersecting the diagonal.
Question: How do I determine the $x$ coordinate where the line intersects the diagonal? (I'm pretty sure that if I drew the line from $0,20$ to $10,20$ it would intersect at $x = 5$)
You have two lines. Find the equation corresponding to each line and solve them simultaneously. For the red one you have two points on the line, so the two point form will work nicely. That will give the coordinates of the point of intersection.