$1500
Step-by-step explanation
the area of a rectangle is given by:

Step 1
Let

so, replacing

so,the area of the carpet is

Step 2
find the cost of the carpet.
to find the total cost just multipy the area by the cost per square yard, so

so,the cost is $1500
I hope this helps you