A farmer wants to buy some sheep and chickens. Each sheep costs $150 and each chicken costs $25. If the farmer spends a total of $1,200 and buys 5 sheep, how many chickens did he buy? Let's think step by step and output the final answer within \boxed{}.
user