The other answer was using the formula correctly through most of the problem, but made a mistake when finding the last distance (#5). The person took away (-2-6 = - 4), which is incorrect. The correct answer is -8 because your adding two negatives. So, the correct answer for the whole problem is 24 units.
Good job to the person who answer they did the whole math problem - just made a little mistake at the end.
First we need the distances of the sides of the polygon, because perimeter = sum of all sides. Now, we add all sides for the perimeter: p = d1 + d2 + d3 + d4 + d5 p = 3+5+5+3+4 = 20 units