Amaya has a bookshelf full of fiction and nonfiction books in a ratio of 4 : 7. She lends of her fiction books to her best friend and is left with 30 total 4 1books. How many total books did she have before giving any to her best friend?