if the perimeter is 72 than how much square feet of carpet would you need?

That depends upon the measurements of this room.

If it's a square, you'll need 18 * 18 square yards.

If it's another rectangle, the room could be 10 by 26, or some other dimensions.