If you're running for 20 minutes, that means you swim for 20 minutes (40-20=20).
Calculate the calories you will burn by running.
20*20 =400.
Then calculate the calories you will burn swimming.
20*10=200.
Then add them together.
400+200 =600.
The answer is 600 calories.