Rebecca is organizing a bake sale. She bakes cookies and cupcakes. Each cookie costs \$0.50 to make, while each cupcake costs \$1.00 to make. She plans to bake 60 items in total, spending exactly \$45 on ingredients. How many cookies and how many cupcakes does Rebecca bake? Let's think step by step and output the final answer within \boxed{}.
user