## Total Cost Given Cost per Unit

Being interested in the total cost of a material, given the price of that material per unit of area, we need to firstly identify the total area. Multiplying the area by the price per one unit of area would yield the total price.

A carpet has a rectangular shape, its length is not equal to its width. In order to solve this problem, we will firstly solve for the area of this rectangular carpet multiplying its length by its width:

{eq}A = 34 ft\times 21 ft = 714 ft^2 {/eq}.

Now we have the total area of this carpet. Knowing the price per square foot and multiplying it by the total number of square feet obtained, we will be able to acquire the overall price:

{eq}p = p_oA = 5 \frac{dollars}{ft^2}\cdot 714 ft^2 = $3,570 {/eq}. Thus, the total cost would be$3,570.