Let the number of Physics textbooks
Then the number of Math textbooks sold

Their total equals 377

Solving the linear equation for x, we have

Adding 85 to both sides will result in


Divide by 2


Hence the Physics textbooks sold is 231.
To find the math textbook sold , substitute 231 into

This gives us,

Hence 146 math textbooks were sold