The court heard that James Allen told a friend that he was dying of cancer on the night of one of the murders.
A friend of James Allen said that he took pity on him, and offered him somewhere to stay the night.
Allen is accused of murdering a pensioner in Middlesbrough last April, as well as a woman in Whitby.
The trial continues.
More top news
A scheme at the intu Metrocentre, which allows police cadets to experience a busy nightshift, is going to be delivered nationally.
Serving soldiers and veterans are excavating a fort where their military predecessors were garrisoned 2,000 years ago on Hadrian's Wall.
A look ahead at the forecast for the Tyne Tees region