A daily workout plan involves a total of 40 minutes of running and swimming. Gregory burns 20 calories per minute of running (r) and 10 calories per minute of swimming (s). Create an equation to model this scenario. *