I spent 10 yuan on the book.或
I spent 10 yuan (in) buying the book.
The book cost me 10 yuan.
I paid 10 yuan for the book.