Traditional Culture Encyclopedia - Tourist attractions - On Sunday, Xiao Ming went on a trip with seven to eight classmates. On the way, he spent 20 yuan to buy drinks. The store only had Coke and milk tea. It was known that a cup of Coke cost 2 yuan.

On Sunday, Xiao Ming went on a trip with seven to eight classmates. On the way, he spent 20 yuan to buy drinks. The store only had Coke and milk tea. It was known that a cup of Coke cost 2 yuan.

Four cups of Coke and four cups of milk tea

Suppose the number of people drinking Coke is X and the number of people drinking milk tea is Y~

2X+3Y=20

X+Y=8

Y=8-X

2X+3(8-X)=20

2X+24-3X=20< /p>

X=24-20=4

Y=8-4=4