The captain put Joseph in charge of those men. So Joseph took care of them. Some time passed while they were in prison.