Перделаете в косвенную речь. Tom said: " We had a task yesterday."
Tom said that they had had a task the previous day