Answer :

20! cause 10 dollars times to pieces equals 20 dollars!

$20. I you buy one piece of cake that costs $10. And by another one by the same price of $10. Then you will send $20 dollars on them.