There are 22 more sophomores than juniors in an 8 am algebra class. if there are 44 students in this class, find the number of sophomores and juniors in the class