Show that the points A(2,2), B(4,6) and C(10,-2) are the vertices of a right-angled triangle.

Check the lengths of the sides

AB = √((4-2)^2 + (6-2)^2) = √(4+16) = √20
Now do the others and check that a^2 + b^2 = c^2
where c is the longest side.