Let say the brownies sold for B amount and cookies for C amount. There were 10 more cookies sold than brownies. If brownies sold X piece then, total sales would be: Sales: (X+10) C + XB
Total sales is $40. Cookies sold for $0.50 each. Brownies sold for $0.75 each. If you insert it all to the first equation, it would become: