You can set up a proportion for this problem. Let the total number of books = x
The number of non-fiction books to the total number of books is
3/(7 + 3) books = 3/10
3/10 = 240/x Cross multiply
3x = 240 * 10 Combine the right
3x = 2400 Divide by 3
3x/3 = 2400/3 Divide
x = 800
Answer: 800 books in total.