Let P = cost of a slice of pzza and D = cost of a drink.
The equation from the first client is as follow:
7P + 5D = 28.42
The equation from the 2nd client is:
6P +4D = 23.80
The easiest way to solve this problem is probably via determinants to which you have probably not been exposed.
In my opinion the nex simples way is by elimination.
Multiply the first equation by 4 and the second equation by 5
28P + 20D = 113.68
30P + 20 D = 119
Subtract the 1st equation from the second
2P = 5.32 => P = 2.66
Sunstitue this value in the 1st equation
18.62 + 5D = 28.42
5D = 9.80 => D = 1.96
Put these 2 values into the 2nd equation to check.