Homelessness is not a trivial problem, full stop. There is no way around this. It can be lessened with extra housing for those who are only homeless because of cost of living, but that doesn't get to the root causes of what causes people to lack funds for housing and such.
It comes down to equality of outcome vs. equality of opportunity. Homelessness can be solved with the former, it’s just that everyone else will suffer as well.