Similar to questioning how Joseph Smith would have been able to afford paper for drafts, we can also question how he would have had enough money to also borrow all the library books he would have needed to write the Book of Mormon.
How would Joseph Smith learn so much about Hebraisms and Mesopotamia etc. if it was not free to take out library books?
We have no evidence of Joseph spending hours and hours in the library so how did he afford all the books he is accused of plagiarizing from?
See: