A farmer is selling apples at a local market. He buys apples for $0.20 each and sells them for $0.50 each. He also pays a daily market fee of $30. If he makes a profit of $100 in one day, how many apples did he sell? Let's think step by step and output the final answer within \boxed{}.
user