They absolutely don't both solve the problem, plenty of homeless people in the capitalist world compared to the 0 people in former USSR
antitrust lawsuit filed against Elsevier, Springer Nature, Taylor and Francis, Sage, Wiley, and Wolters Kluwer, for conspiring to appropriate billions that should have funded scientific research
Probably depends on the country, I'm pretty sure here in Spain you can donate books to libraries, and I highly doubt they go to the publisher and call them to ask "hey, want any good ol' buckaroos?"
They absolutely don't both solve the problem, plenty of homeless people in the capitalist world compared to the 0 people in former USSR