A textbook store sold a combined total of 470 biology and history textbooks in a week. The number of history textbooks sold was 62 less than the number of biology textbooks sold. How many textbooks of each type were sold?