A textbook store sold a combined total of 312 biology and physics textbooks in a week. The number of physics textbooks sold was 54 less than the number of biology textbooks sold. How many textbooks of each type were sold