Answer:
![\left\{ \begin{array}{ll} 2d+4p=28 \\ d+p=9 \end{array}](https://img.qammunity.org/2021/formulas/mathematics/college/pjfkb68uqzhlwxmam5j9pf5q8wh6nu9pkl.png)
Explanation:
We are letting d represent the number of drinks and p represent the number of pizza slices.
We know that each drink d costs $2. We also know that each pizza slice p costs $4. They spent a total of $28. Therefore:
![2d+4p=28](https://img.qammunity.org/2021/formulas/mathematics/college/7l04l4xzuxsm2680w0do8bjc07mc8bftul.png)
We also know that 9 items was purchased all together. So, the total number of drinks d and pizza slices p sum to 9:
![d+p=9](https://img.qammunity.org/2021/formulas/mathematics/college/jz67vk0gq86c4p7rzmlvhchhxuroqn0lee.png)
Therefore, our system of equations is:
![\left\{ \begin{array}{ll} 2d+4p=28 \\ d+p=9 \end{array}](https://img.qammunity.org/2021/formulas/mathematics/college/pjfkb68uqzhlwxmam5j9pf5q8wh6nu9pkl.png)