Answer:
255 history textbooks
85 sociology textbooks
Explanation:
Define the variables:
- Let x be the number of history textbooks sold.
- Let y be the number of sociology textbooks sold.
Given information:
- Total number of textbooks sold in a week was 340.
- The number of history textbooks sold was three times the number of sociology textbooks sold.
Create a system of equations with the given information and defined variables:
![\begin{cases}x+y=340\\\;\;\;\:\:\:\:x=3y\end{aligned}](https://img.qammunity.org/2023/formulas/mathematics/high-school/kfl55es24ayyo4b0pu2woia5ifteb4rld3.png)
Substitute the second equation into the first equation and solve for y:
![\implies 3y+y=340](https://img.qammunity.org/2023/formulas/mathematics/high-school/63il3r9objp2j9z7jqbgkuqkwhijmmuizg.png)
![\implies 4y=340](https://img.qammunity.org/2023/formulas/mathematics/high-school/p271g1satyzmjrk7ko53gevmtod0cdkoda.png)
![\implies y=340 / 4](https://img.qammunity.org/2023/formulas/mathematics/high-school/ewpwte36afrjdguht3hmqi281gvifabvrf.png)
![\implies y=85](https://img.qammunity.org/2023/formulas/mathematics/high-school/zpdjf0dzro8w45axpnwdsduh1x5tya1aoe.png)
Substitute the found value of y into the second equation and solve x:
![\implies x=3 * 85](https://img.qammunity.org/2023/formulas/mathematics/high-school/x1ridz7lfvjtym6me4nrdv4v8zxyo61rjp.png)
![\implies x=255](https://img.qammunity.org/2023/formulas/mathematics/high-school/sgoefvbtvq1w2cr23gfk1tahd05ek7o388.png)
Therefore, the number of each type of textbooks sold were:
- 255 history textbooks.
- 85 sociology textbooks.