A textbook store sold a combined total of 256 sociology and history textbooks in a week. The number of history textbooks sold was 76 less than the number of sociology textbooks sold. How many textbooks of each type were sold?​