In a mathematics class, 40 students received an A on the third test, which is 125% of the students who received an A on the second test. How many students received an A on the second test?

a) 20
b) 25
c) 32
d) 40