Remember that perimeter is the sum of the lengths of the sides. The way to find the length of the sides is
where
is one endpoint of one line, while
is the other endpoint of the same line. Repeat this formula for each side and add them all together to get your perimeter