Respuesta :

Simply take the points, example (2, 4) of two points of the rectangle and solve by doing y2 - y1 / x2 - x1