A polygon is a closed shape with straight sides, having three or more sides. It…