John has a garden where he plants tomatoes and carrots. The number of tomato plants is three times the number of carrot plants. If the total number of plants (tomatoes and carrots combined) in the garden is 48, how many tomato plants and how many carrot plants does John have? Let's think step by step and output the final answer within \boxed{}.
user