The ratio of story books in a library to other books is 1 : 7.
Out of (1 + 7) = 8 books, 1 book is a story book
Therefore,
When number of story books is 1, the total number of books = 8
When number of story books is 800, the total number of books = 8 800
= 6400