Ответ:

  1. While he was walking his dog, he met his old friend.
  2. Yesterday I got up at 6 o'clock a.m.
  3. We were watching the film when somebody knocked on the door.
  4. We were watching TV while our mum was baking a cake.
  5. He was writing the test at 3 pm yesterday.