A farmer has three fields. The first field has 30 apple trees, the second field has 4 times as many apple trees as the first field, and the third field has 50 fewer apple trees than the second field. How many apple trees are there in total across all three fields? Let's think step by step and output the final answer within \boxed{}.
user