We can use a little logic, here
Let the sides of the triangle be AB, BC, AC
We have a 6-8-10 right triangle
The area = (1/2) [ Product of the legs ] = (1/2) [ 8 * 6 ] = 24
Let the center of the incircle = O
We can divide the right triangle into three smaller triangles = AOB, BOC and AOC
The inradius will be tangent to each side of triangle ABC, so it will form an altitude to each of the three smaller triangles
So.....the area of ABC = (1/2) (inradius) [ AB + BC + AC]
24 = (1/2) (inradius) [ AB + BC + AC ]
24 / (1/2) = (inradius) [ perimeter ]
48 = (inradius) [ 6 + 8 + 10 ]
48 = (inradius) [ 24 ]
inradius = 48 / 24 = 2 units
