Maria is planning a garden and wants to buy soil and fertilizer. She needs twice as much soil as fertilizer. Each bag of soil costs $5 and each bag of fertilizer costs $8. If she has a budget of $64 and buys a total of 10 bags of soil and fertilizer combined, how many bags of each will she buy? Let's think step by step and output the final answer within \boxed{}.
user