you are given (x, y) cordinates of each vertex of a triangle how would you use the slope formula to determine if a triangle in the cordinate plane is a rigt triangle