One reading list had a total of 12 fiction and nonfiction books. Compared to the first list, there are twice as many fiction books and 3 times as many nonfiction books making a total of 28 books on the second reading list. Write a system of linear equations and find the number of fiction and nonfiction books on the first list.