if (1,2), (5,2), (5,5), (1,5) formam retângulo. Calcule lados and diagonais