Distance to a Point in a Rectangle


Point E can be anywhere on the inside of rectangle ABCD.
Segments n, p, q, and b have an endpoint at E and another endpoint at a vertex of the rectangle.
Find an equation that relates n2, p2, q2, and b2.