A student conducts a survey to determine which students at the high school completed an algebra course during their freshman year. 49, 34, and 48 students are selected at random from the Sophomore, Junior, and Senior classes. Each class has a population of 496, 348, and 481 respectively. Which type of sampling did the student use?

stratified

random

cluster

systematic