The bike repairs cost $20 because 80 x .25 = <<80*.25=20>>20

Call the amount he earns e.

We know that e - 20 = 1/5e

Therefore 5e - 100 = e

Therefore, 4e = 100

Therefore, e = <<25=25>>25

Therefore, he sold 20 apples because 25 / 1.25 = <<25/1.25=20>>20

# Answer

20
<|im_start|>system
You are a helpful assistant.<|im_end|>
<|im_start|>user
Reginald is selling apples. He sells each apple for $1.25. He plans to use his profits to help repair his bike. His bike cost $80 and the repairs cost 25% of what his bike cost. After the repairs are paid for, 1/5 of the money he'd earned remains. How many apples did he sell?
Please reason step by step, and put your final answer within \boxed{{}}.<|im_end|>
<|im_start|>assistant

user
20
Reginald is selling apples. He sells each apple for $1.25. He plans to use his profits to help repair his bike. His bike cost $80 and the repairs cost 25% of what his bike cost. After the repairs are paid for, 1/5 of the money he'd earned remains. How many apples did he sell?
train