A textbook store sold a combined total of 205history and math textbooks in a week. The number of history textbooks sold was 87more than the number of math textbooks sold. How many textbooks of each type were sold?

There were 146 history textbooks and 59 math textbooks sold.

To solve this problem, let's create two variables: "h" for the number of history textbooks sold and "m" for the number of math textbooks sold.

We are given two pieces of information:
1. The total number of textbooks sold is 205: h + m = 205.
2. The number of history textbooks sold is 87 more than the number of math textbooks sold: h = m + 87.

Now we can solve this system of equations to find the values of "h" and "m". There are multiple methods to solve a system of equations, but in this case, let's use the substitution method.

Start by isolating one variable in the second equation, solving for m:
h = m + 87.

Now substitute this expression into the first equation:
(m + 87) + m = 205.
2m + 87 = 205.

Next, solve for m:
2m = 205 - 87.
2m = 118.
m = 118 / 2.
m = 59.

Now that we have the value of m, we can substitute it back into one of the original equations to find the value of h:
h = m + 87.
h = 59 + 87.
h = 146.

Therefore, 146 history textbooks and 59 math textbooks were sold.