John has a total of 45 apples and oranges. The number of apples is three times the number of oranges minus 5. How many apples and oranges does John have? Let's think step by step and output the final answer within \boxed{}.
user