Madelyn likes to make desserts for bake sales. Last month, she made 3 batches of brownies and 3 batches of cookies, which called for 15 eggs total. The month before, she baked 1 batch of brownies and 3 batches of cookies, which required a total of 13 eggs. How many eggs did Madelyn use for a batch of each dessert?