Do libraries sell used books?

Yes. The Friends of the Library have many bookstores located within or near the libraries.