A textbook store sold a combined total of 290 math and history textbooks in a week. The number of math textbooks sold was 64 more than the number of history textbooks sold. How many textbooks of each type were sold