There is enough food and shelter for all. This is an abundant and infinitely vast universe. Everything that we have comes from this earth - and returns to it. I got a castle - you got a castle. In my father's castle there are many mansions.
Schools are primarily used during the day - allow the homeless to have shelter during the night.
It is more productive to allow them the space to create and learn than to lock them up in a confined space and take on all the responsibilities for their maintenance and care. The greater an individuals' sense of personal freedom and expression, the more they are empowered to care for themselves and each other. Let them grow their food cook their meals. Return to the simple life , outside the cities. All food and sustenance comes from the earth that's the direct connection.