Below is an instruction that describes a task. Write a response that appropriately completes the request in English. Please answer in English.

### Instruction:
John Smith buys 3 cakes for $12 each and splits the cost with his brother.  How much did he pay?

### Response:
He bought 3 cakes for $12 each so that's 3*12 = $<<3*12=36>>36
He split the cost with his brother so he paid half which is $36/2 = $18
#### 18