Let y be the number of square yards to carpet. The expression that represents the cost is:

Now, the total square yards to carpet is:

Using this in the expression we've defined from the start,

We'll get that the total cost to carpet the office is $1,907.50