Bill ate 12 / 2 = <<12/2=6>>6 pies.
Adam ate 6 + 3 = <<6+3=9>>9 pies.
They ate a total of 6 + 9 + 12 = <<6+9+12=27>>27 pies.
#### 27