A textbook store sold a combined total of 289 sociology and math textbooks in a week. The number of math textbooks sold was 65 less than the number of sociology textbooks sold. How many textbooks of each type were sold?