Use these steps when an explicit subject follows the verb.
1. Identify the verb and its subject: دَخَلَ الْمُعَلِّمَانِ.
2. Move the subject to the beginning: الْمُعَلِّمَانِ .... It is now the mubtada.
3. Make the verb agree with that preceding mubtada in number and gender: دَخَلَا.
4. The resulting nominal sentence is الْمُعَلِّمَانِ دَخَلَا. The verbal clause دَخَلَا is its predicate.
Do not move the noun and leave the verb unchanged.