(please explain with brief explanation)

two squares have sides p cm and (p+5) cms. the sum of theirs squares is 625 sq.cm. the sides of the squares are

what's to explain? Write the facts in symbols:

p^2 + (p+5)^2 = 625

Now just solve for p and find p+5