Solve the following word problem:
Jemima wants to make chocolate-chip walnut brownies. Chocolate chips come in a 12oz bag that costs $3. Walnuts come in a 4oz bag that costs $2. If Jemima needs three pounds of chocolate chips and walnuts combined, and has $15 to spend, how many bags of each can she buy?