If your choices are
A. C = 2.99x - 50
B. C = 50 - 2.99x
C. C = 50x - 2.99
D. C = 2.99 - 50x
2.99x
That’s the money you owe for the cherries. That eliminates choices C and D.
50 - 2.99x
When x is zero you should get 50 dollars back, so that eliminates A. You get 50 dollars back minus the money that you owe for the cherries, so that's choice B.
B. C = 50 - 2.99x