It took me nine yuan for me to buy a piece of chocolate.
I spent nine yuan buying a piece of chocolate.