Resting is just what your body needs to run, even if you were lying prone 24/7. It is the energy needed to keep your heart beating, your brain working, food digesting, etc. It’s based on your age, weight, Muscle mass, metabolism, gender, and it’s also called your BMR, your basal metabolic rate.
Active is everything beyond that. Work, exercise, sex, playing with your kids, whatever. That is all active caloric burn.