A room that is shaped like a trapezoid will be carpeted. The parallel sides of the room are 15 feet and 25 feet long. A segment perpendicular to these sides is 22 feet long.

The carpet will cost $5.20 per square foot.

How much will it cost to carpet the room?