2,When the ball (to ring) the teacher enterd the classroom.
2When the bell rang the teacher entered the classroom.