He bought 3*12=<<3*12=36>>36 eggs
So they cost 36*.5=$<<36*.5=18>>18
#### 18