Okie,
the space to be carpeted is 30 feet by 50 feet, that means the area of this carpet is 30x50=1500 square foot.
For company A: we have spend: $2.99*1500+ $200= $4685
For company B: we have spend: $19.99*1500:9+ $500= $3831.7 cause 1 square yard= 9 square foot
We choose plan of company A