Ответ:

When I came into the kitchen, my mother was cooking.