Can you please help with this question:

The cheerleaders are having a bake sale to raise funds for new uniforms. The group sell cupcakes for $3 each and make a profit of $840 from the sales. If X represents the number of cupcakes the cheerleaders sold and their cooking supplies cost them $500, what is an equation that could be used to solve for X?

1 answer

3x-500 = 840