We can use these two tenses together as below, for example:
While she was walking on a sunny beach, Amy slowly read an extremely long book about justice.
I was wondering under what conditions we can use this structure, i.e. While + PS + PS:
While she was on a sunny beach, Amy slowly read an extremely long book about justice.