So I got this question I couldn't solve. Can anyone help me solve it? Thank you!

Rectangle ABCD is 10 cm long and 5 cm wide. Point P is located x centimetres from A on side AB. Point Q is located y centimetres from A on side AD. For what values of y is it possible to locate a point R on side BC such that $\displaystyle angle QPR=90^o$