In a school garden project, Ava planted 9 apple trees, which is 3 more than Lily planted. If Lily planted 3 fewer apple trees than Ava, how many apple trees did Ava and Lily plant in total? Let's think step by step and output the final answer within \boxed{}.
user