Ответ:

When mother came home, I was doing my homework.