Let ab be a 2 digit number, then ab=10a+b, where a and b are digits, a≠0.
"the difference between the integer and the product of its two digits is 12"
10a+b - (a*b)=12
10a+b-ab=12
factorize b:
10a+b(1-a)=12
subtract 10 from both sides, to produce a factor (1-a) or (a-1) and then factorize:
10a-10+b(1-a)=2
10(a-1)+b(1-a)=2
(a-1)(10-b)=2
(a-1)(10-b) can be (1,2), (2, 1), (-1, -2), (-2, -1)
if a-1=1 and 10-b=2, then a=2, b=8 if a-1=2, and 10-b=1, then a=3, b=9 if a-1=-1, then a=0, which is not possible if a-1=-2, then a=-1, which is not possible
So since this a right-angled triangle, you might want to use the Pythagorean Theorem. First, use the formula A(squared) + B(squared) + C(squared). Since c is unknown just put that as x(squared). Then, answer A(squared) and B(squared which would be 16mm and 12mm in this case. Multiply 16*16.... and you get 256. Then do the same to side B which is 12 and you get 144. Then know you can add them both together and get 400. What is the square root of 400? Yes, it’s 20. And there is you answer!