The school board shall purchase, at the expense of the city or town in which the district is situated, textbooks and other supplies required for use in the public schools; and shall loan the same to the pupils of such schools free of charge, subject to such regulations for their care and custody as the board may prescribe; and shall sell such books at cost to pupils of the school wishing to purchase them for their own use.