A right triangle has an area of 50 square inches. If the triangle is an isosceles triangle, what are the lengths of the legs of the triangle? If the triangle is not an isosceles triangle, what are all the possible lengths of the legs?