Поставьте в нужное время Sam ...(do) his homework from 5 to 6.
Sam was doing his homework from 5 to 6.