A farmer has a certain number of apples. If he sells 1/4 of his apples, and then gives away 15 apples to his neighbors, he has 20 apples left. How many apples did he originally have? Let's think step by step and output the final answer within \boxed{}.
user