Jamie is preparing to bake cookies and needs to buy flour. The recipe calls for 5 pounds of flour, and each bag of flour weighs 2.5 pounds. If Jamie buys the bags from a store where each bag costs $3.50, how much will Jamie spend on the flour? Let's think step by step and output the final answer within \boxed{}.
user