I need help with #6 please help and I need the work

So for this, we have to replace p for 700 to solve for how many candy bars it takes to make that profit. Our equation will look like this: [tex] 700=1.50n-500 [/tex]
Firstly, add 500 onto both sides of the equation: [tex] 1200=1.50n [/tex]
Next, divide both sides by 1.50, and your answer will be [tex] 800=n [/tex]
In context, in order to make a profit of $700, you must sell 800 candy bars.
Since p represents profit, and we want to calculate the amount of candy bars to be sold to get a profit of 700 dollars, substitute 700 for p in the equation to calculate the value of n (the number of candy bars that must be sold).
p = 1.5n - 500 (given)
700 = 1.5n - 500 (substitute)
1200 = 1.5n (add 500 to both sides)
800 = n (divide both sides by 1.5)
Answer:
800 candy bars must be sold to make a profit of $700.