The teacher put a problem on the blackboard.
The teacher laughed and told them it was impossible to solve.
The students worked hard at solving it until the end of the class.
The students worked hard at solving it until the end of the movie.