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