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