I know the point of the post is to illustrate the versatility of the polygon statement, but I found myself…