And you missed out a few things.
For example: cout << "How many $20 bags did you sell?";

instead of cout << "How many $20 bags did you sell?

I have edited your code, hope this helps

12345678910111213141516171819

int main()
{
int price, sold, profit, final;
//price of the initial investment on your ounce
cout << "How much did you pay for your ounce? ";
cin >> price;
//how many bags ($20) did you sell?
cout << "How many $20 bags did you sell?";
cin >> sold;
//this section will calculate the profit from the sold bags
profit = sold * 20;
//this section will subtract the amount paid for your ounce by the profit to determine your total profit
final = profit - price;
cout << "Your total net profit is $ " << final << endl;
system("pause"); //pause the system, so that you can see the outputreturn 0;
_getch();
}