This is an incircle-radius-of-a-coordinate-triangle question. You can recognise the pattern
because three coordinate vertices of a triangle are given and the inradius is asked. Here
the coordinates reveal a right triangle, which gives a fast shortcut instead of the general
area-over-semi-perimeter method.
Step 1: Identify the shape of the triangle.
Vertices: A(1,2), B(7,2), C(1,10).
A and B share the same y-coordinate (2), so AB is a horizontal segment with length
|7 - 1| = 6.
A and C share the same x-coordinate (1), so AC is a vertical segment with length
|10 - 2| = 8.
Since AB is horizontal and AC is vertical, they are perpendicular to each other, so the
triangle is right-angled at A, with legs 6 and 8.
Step 2: Find the hypotenuse.
BC = sqrt(AB^2 + AC^2) = sqrt(6^2 + 8^2) = sqrt(36 + 64) = sqrt(100) = 10.
Step 3: Use the right-triangle inradius shortcut.
For a right triangle with legs a and b and hypotenuse c, the inradius is:
r = (a + b - c) / 2
This comes from the general formula r = Area / semi-perimeter, and simplifies neatly
whenever the triangle has a right angle.
r = (6 + 8 - 10) / 2 = 4 / 2 = 2
Answer: the inradius is 2.
Common trap: using the general formula r = Area / s without noticing the right angle is
more error-prone since it needs computing Area separately by the shoelace method and the
full semi-perimeter with a square root for the hypotenuse. Recognising the right angle
first (from matching x- or y-coordinates) makes this a much faster, safer calculation.