A gardener plants flowers in his garden. He plants 3/4 of the garden with roses and the remaining 1/4 with tulips. If he plants a total of 48 flowers, how many roses and how many tulips does he plant? Let's think step by step and output the final answer within \boxed{}.
user