Samantha has a garden with 15 flowerbeds. Each flowerbed contains either 8 tulips or 12 daisies. If the total number of flowers in the garden is 144, how many flowerbeds contain tulips and how many contain daisies? Let's think step by step and output the final answer within \boxed{}.
user