Answer:
Total fixed cost = $1035
Rugs sells = 18
Total costs = $1179
Revenue = $558
Total variable cost = Total costs - Total fixed cost
= $1179 - $1035
= $144 for 18 rugs

= $8 per rug
Where,
x represents number of rugs
C(x) = $1035 + 8x ⇒ Cost function
Revenue for 18 rugs = $558

= $31 per rug
R(x) = 31x ⇒ Revenue Function
Profit = revenue - cost
P(x) = 31x - (1035 + 8x)
= 31x - 1035 - 8x
= 23x - 1035 ⇒ Profit Function