Kesha and Polly were making cookies and cakes using the same recipe. Keesha made 5 batches of cookies and 3 cakes using 21 cups of flour. Polly made 6 batches of cookies and 4 cakes using 26 cups of flour. How many cups of flour does each dessert require?