A textbook store sold a combined total of 423 math and psychology textbooks in a week. The number of math textbooks sold was 45 more than the number of psychology textbooks sold. How many textbooks of each type were sold?