The formula for the perimeter of a rectangle is P=2(l+w).

Solve For W.

The formula for a trapezoid relates the area A, the two bases, a and b, and the height, h
A=(a+b)2h

Solve for a