n^2+m^2=w^2, (8-n)^2 + (6-m)^2 = 64, 6=m+n(8-n)/m