Systems problem.
X = pizza
Y = soft drinks
Penny out the money.
------
8X + 4Y = 2940
7X + 6Y = 3030
Use elimination.
3(8X + 4Y = 2940)
- 2(7X + 6Y = 3030)
------
24X + 12Y = 8820
- 14X - 12Y = - 6060
+------+ ( add )
10X = 2760
X = 276
======Your slice of pizza = $2.76.