The library, potentially. The other option that I've seen is that the professor buys one copy of the books and then copies the parts they want so they can distribute to the students.
Oh, okay.
The teacher/professor would be able to buy the book and can then copy and hand out the parts they are actually using for their classes.