There were a total of 800 novels and nonfiction books at a book shop. 2/5 of these books were novels. Each novel was priced at $
7. Each nonfiction book was priced at $5. How much money would the owner of the book shop make if he sold 3/8 of the novels and 2/5 of the nonfiction books?