People joined the gym for the new year. Some of them only plan to do cardio workouts and some only want to do weight training. 10 of them do both cardio and weight training. If the number of people who do weight training is 21, then how many do cardio, how many do only cardio and how many only do weight training?
a+b = 21 (given)