Trapezoids are two-dimensional geometric figures enclosed by four sides having a pair of sides parallel to each other and another…