Option (A) is correct.
Explanation: Main course: 5 ways.
Starter or soup or neither: these choices exclude one another, so we add: 4+2+1=7 ways (taking neither is one way).
Dessert and drink: the drink choices depend on the dessert choice, so split into cases and add.
- No dessert: 1 way, then any of 3 drinks: 1×3=3.
- A dessert: 3 ways, then one of 2 free drinks: 3×2=6.
So the dessert-and-drink part can be done in 3+6=9 ways. By the multiplication principle:
5×7×9=315
Why the other options are wrong
- (B) 5×(4+1)(2+1)×9=5×15×9=675 treats the starter and the soup as two separate optional items. That allows a starter and a soup together, which the cafe does not allow.
- (C) 5×(4+2)×9=270 forgets that "neither" is also allowed, so it misses every meal with no starter and no soup.
- (D) 5×7×(1+3)×3=420 keeps 3 drink choices even when a dessert is taken. With a dessert only the 2 free drinks are allowed.