Answer
$800$ ways.
Work Step by Step
The Fundamental Counting Principle:
The number of ways in which a series of successive things can occur is found by multiplying the number of ways in which each thing can occur.
---
1. You can choose an appetizer in 20 ways.
2. You can choose a main course in 40 ways
Total ways = $20(40) = 800$ ways.