A textbook store sold a combined total of 392 math and sociology textbook in a week. The number of sociology textbooks sold was 50 less than the number of math textbook sold. How many textbook of each types were sold ?