A simple question on interpolation/extrapolation

Ihave one simple question. Attached figure shows that if the line AB is extended, itsomewhere intersects the rectangle at C. My question is how to find the intersectionpoint C. I know the coordinates of A and B. Thanks in advance.


This is high school maths - google intersection of lines.