Harry bought 3 packets of red plastic balls, 2 packets of yellow plastic balls, and 3 packets of green plastic balls. There were 12 plastic balls in each packet. How many plastic balls did Harry buy in all?