#"Distance between two points, knowing their coordinates "#
#d = sqrt((x_2-x_1)^2 + (y_2 - y_1)^2)#
#X (0,2), Y (4,-1), Z(-2,-1)#
#bar (XY) = z = sqrt((4-0)^2 + (-1-2)^2) = 5#
#bar(YZ) = x = sqrt((-2-4)^2 + (-1+1)^2 = 6#
#bar(XZ) = y = sqrt((-2-0)^2 + (-1-2)^2) = 3.61#
#color(indigo)("Perimeter of the triangle XYZ " = z + x + y = 5 + 6 + 3.61 = 14.61 " sq units"#