The library at school is organized by fiction and nonfiction books. There are 3 nonfiction books for every 7 fiction books. How many total books are there if the library has 240 nonfiction books?