Your daily workout plan involves a total of 40 minutes of running and swimming. You burn 20 calories per
minute running and 10 calories per minute swimming. Let r be the number of minutes you run. How many
calories will you burn in your 40 minute workout if you run for 20 minutes?