I need help answering

So what you want to do is plug in the 6 for the h because it is the numbers of hours and 3 for the w because that is the number of wagons sold. When you do that it should look like this: 12x(6)+30x(3) Then use PEMDAS to solve. it should look like this: (12x6)+ (30x3)
So you multiply 12 times 6 and get 72 then multiply 30 times 3 and get 90.
Then you add 72 to 90.
Answer is 162
Let me know if that isnt right.