We are given that the total points of the test is 150. If "x" is the number of questions worth 5 points and "y" the number of questions worth 8 points then the total number of points is:
![5x+8y=150,(1)](https://img.qammunity.org/2023/formulas/mathematics/college/nnfopvofu5ggms1mtgx9l7as4wmhnyb4y8.png)
We are also given that the total number of questions is 24, therefore, we have:
![x+y=24,(2)](https://img.qammunity.org/2023/formulas/mathematics/college/e8rv5xwkocxlysozuj3o6znms773fz0ugx.png)
Therefore, the system of equations that can be used to solve for each type of question is:
![\begin{gathered} 5x+8y=150,(1) \\ x+y=24,(2) \end{gathered}](https://img.qammunity.org/2023/formulas/mathematics/college/gxlve0i5ln6auaz5za6fxz7c2ats4304of.png)