Barbie enjoys buying jewelry. One day, she bought 12 pairs of earrings and gave half of them to Alissa, making Alissa's total number of earrings triple the number of earrings she was given. How many earrings does Alissa have now? Let's think step by step and output the final answer within \boxed{}.
user