You plot the points and use the distance formula to find the length of the lines between the points. Distance formula: d=
Then use the pythagorean theorem with the sides, (C^2=A^2+B^2, c=longest side) if the equation works then it is a right triangle.