your golden walnuts for mister Qi's room never go down, so I would buy the farmhouse and everything possible.
for example, if you have collected 24 golden walnuts, but you spend 20 of them, you will have four left. if you go to Qi's walnut room it will still say 24/100. so all you need to do is get the golden walnuts, but you can still spend them. hope this helps