40 x 60 x 98 x 97
There are 40 seniors to be president, 60 juniors to be juniors, 98 people are left since 2 were elected for president and vice president. After the Secretary has been elected, there are 97 people left. SImply multiply the numbers. There are 22,814,400 ways.