"How should we spend it?"
Give people money. Unfortunately, you could only do this effectively on a national level. In San Francisco, $40k isn't even enough to cover cost of living.
You could also give people housing vouchers, but you need to have available affordable housing for that to work.
[1] https://www.businessinsider.com/how-expensive-is-san-francis...