Lily decided to bake cookies for her school event. She baked 1/4 of her cookies as chocolate chip, 1/3 as oatmeal raisin, and the remaining 30 cookies as sugar cookies. If she baked a total of 120 cookies, how many of each type did she bake? Let's think step by step and output the final answer within \boxed{}.
user