A textbook store sold a combined total of 452 sociology and biology textbooks in a week. The number of sociology textbooks sold was three times the number of biology textbooks sold. How many textbooks of each type were sold?