in buying (spend ...(in)doing.../spend...on sth.)
Yesterday, I bought a book spend 20 rmb.
20yuan was spent on the book yesterday.
.填,,to buy
the book took me 20 yuan yesterday