Open the brackets and make the past continuous. Use long forms in negations, i.e. was not / were not.
Example: I was writing a letter when my friend came. (to write)
Lily was not sleeping when I called her. (not to sleep)
1. When I saw Peter he an apple. (to eat)
2. We got home late but the kids . (not to sleep)