At a bake sale, brownies were sold for .75 cents each and cookies were sold for .50 cents each. There were 10 more cookies sold than brownies, and the total amount earned was $40. How many brownie and cookies were sold at the bake sale?