A store sells two brands of coffee. Brand A costs $15 per pound, while Brand B costs $20 per pound. If a customer buys a total of 8 pounds of coffee and spends $140, how many pounds of each brand did they buy? Let's think step by step and output the final answer within \boxed{}.
user