Galvin bought 3/5 as many non-fiction books as fiction books from a book fair. He read 6 non-fiction books and 13 fiction books. He then had 3/4 as many non-fiction books left to read as fiction books. How many books did Galvin buy altogether?