1. when the teacher comes in , we shut up immediately.2. he gets his alary at the end of every month.
we kept our mouths shut (kept silent) immediately when the teacher entered.He did (does) not take the salary at the end of each month.