Надо поставить предложение в Паст контининиус.Peter and Maria do homework/ their father come in.
Peter and Maria were doing (their) homework when their father came in