Перевести в косвенную речь, one day captain leonard have not seen two of them for a long time. he looking for them.he opened a door and shouted down some stairs, ,,who is there? " ,,william, captain,'' was the answer. ,,what you are doing there, william? '' the captain asked. ,,nothing, captain,'' william aswered. ,,tom were? '' the captain shouted then. ,,yes, he is,'' being the answer. ,,what he is doing? '' the captain asked. ,,he helping me, captain,''william answered.
2) The capitan asked him what he was doing there. = "What you are doing there, William?'' - the captain asked.
3) The captain asked what he was doing. = "What he is doing?'' - the captain asked.
4) William answered that he was helping him. = "He is helping me, Captain". -William answered.
5) The captain asked if Tom was there. = "Is Tom here? '' - the captain shouted then.