An artist creates a metal sculpture using two different alloys, Alloy X and Alloy Y. The total mass of the sculpture is 120 grams and it is 45% copper by mass. Alloy X is 30% copper by mass, and Alloy Y is 60% copper by mass. What is the mass, in grams, of the copper contributed by Alloy X?
18
24
30
36