a textbook store sold a combined total of 366 psychology and history textbooks in a week. The number of history textbooks sold was 40 less than the number of psychology textbooks sold. how many textbooks of each type were sold?