If the bakery can make 12 pies, this means there would be 12 * 3 = <<12*3=36>>36 pie pieces.
For all the pieces the bakery would make 36 * 4 = $<<36*4=144>>144.
The cost of making 12 pies is 12 * 0.5 = $<<12*0.5=6>>6.
That means the bakery would make 144 - 6 = $<<144-6=138>>138.
#### 138