How Can we say that PQ is a straight line?

How can we calculate y if PQ is not a straight line?

Lines are always straight on the GRE.