Answer:
25 and 20
Step-by-step explanation:
p²=24²+7² ⇒ p²= 625 ⇒ p=25
q²=p²-15² ⇒ q²=625 - 225 ⇒ q²=400 ⇒ q= 20