''was" is used for things that could have happened in the past or now and correctly fills the gap
One of the clever pupils was able to solve the problem.