A baker sells cupcakes for each and brownies for each. The total amount of money earned from selling cupcakes and brownies was . The equation represents this situation, where is the number of cupcakes sold and is the number of brownies sold. If the baker sold 4 cupcakes, how many brownies were sold?