I need this question need done asap

H² = B² + P²
(25)² = (24)² + p²
625 = 576 + p²
p² = 49
p = 7