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
Plans to stop the Teesside super-hospital project seen temperatures rising among politicians and campaigners.
Birds of Paradise is a tribute to the elegance of feathers used by fashion industry giants like Alexander McQueen Christian Dior and Gucci.
School boy, Dylan Cosgrove is backing Tyne and Wear Fire and Rescue's bonfire safety campaign after a firework prank went horribly wrong.