Past Proggressive + when + Simple Past:
1. I was doing my homework then the TV turned off.
2. She was cheating when the teacher fell down.
3. You were mistaking when I mistook too.
Simple Past + While + Past Progressive
1. I listened music while my mom was doing the dinner.
2. You made a mistake while I was eating fish.
3. He sang a song while You taking photos.
When = Cuando
While = Mientras
Suerte! :)