The wheelbarrow cost $30 because 60 / 2 = <<60/2=30>>30

The farmer earned $60 from selling fowl because 30 / (1/2) = <<30/(1/2)=60>>60

The farmer earned $40 selling chickens because 5 x 8 = <<5*8=40>>40

The farmer earned $20 selling ducks because 60 - 40 = <<60-40=20>>20

The farmer sold 2 ducks because 20 / 10 = <<20/10=2>>2

# Answer

2
<|im_start|>system
You are a helpful assistant.<|im_end|>
<|im_start|>user
A farmer is selling ducks and chickens at the market. He sells ducks for $10 and chickens for $8. He sells 5 chickens and some ducks. He then spends half his earnings on a new wheelbarrow. After buying it, someone sees it and agrees to pay the farmer double what the farmer paid and the farmer earns another $60. How many ducks did the farmer sell?
Please reason step by step, and put your final answer within \boxed{{}}.<|im_end|>
<|im_start|>assistant

user
2
A farmer is selling ducks and chickens at the market. He sells ducks for $10 and chickens for $8. He sells 5 chickens and some ducks. He then spends half his earnings on a new wheelbarrow. After buying it, someone sees it and agrees to pay the farmer double what the farmer paid and the farmer earns another $60. How many ducks did the farmer sell?
train