m = 9 and n = 15
Find the length( l ) of the leg in the large right triangle using Pythagoras' identity
l = √(25² - 20²) = √225 = 15
the outer and inner right triangles are similar hence the ratios of corresponding sides are equal
=
=

using
=
(cross-multiply )
20n = 300 ( divide both sides by 20 )
n = 15
using
=
( cross-multiply )
20m = 180 ( divide both sides by 20 )
m = 9