given the right triangle, as stated in the problem, two right sides A and B, having A^2 + B^2 = 10^10 and the area is, A*B/2=6*10/2 There is no solution for A and B in real domain.