During a carpet sale, a carpet company sold $6,792 worth of carpet. If they sold 849 square yards of carpet, what was the average price per square yard?

A.$8
B.$7
C.$16
D.$5,943