So, Ilhan, if we start with 873 sodas and break them into 9 parts, there are 873/9 = 97 parts. They had 7 parts left after discarding 2 and got rid of 3 of those for being expired, so they had 4/9 left. Since one group is 97, four groups is 97(4) = 388 sodas left.
The mathematical way to solve would be 873(7/9)(4/7) = 388 sodas left.