When I (to see) him yesterday, he (to speak) to his teacher в past simple или past continuos
When I saw him yesterday, he was speaking to his teacher