Answer:
1.He wasn't planting trees in the garden at 4pm yesterday.
2.They weren't working when she came yesterday.
3.She wasn't painting a picture while her mother was making a cake.
4. Anne wasn't riding her bike to school when Peter saw her yesterday.
5.He wasn't typing a letter when his boss went into the room.