Call the base of the rectangle $b$ and the height $h$. If the distance from A to P is $x$, can you write an equation linking $b$, $h$ and $x$ in order to make $AP=PQ$? How many possible values can x take in your equation?