Both "put away the books" and "put back the books" are correct, but they can have slightly different meanings. "Put away the books" implies that the books were stored or placed in a designated spot, while "put back the books" suggests that the books were returned to where they were originally found.