Think of it this way. Take it one at a time. For every one sandwich, there are two different soups you can have (disregard the drinks for now). That's two combinations, for three sandwiches, so three times two, which gives you six.
Now, for every one sandwich and one drink (six), there are four different drinks you can choose from. Six times four is 24.
In other words, multiply all the numbers together.