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