Complex sentence: Baines rescues him and they escape to the lifeboat just in time before the ship explodes but tragically Tom dies from his injuries in Baines' arms.
Split into simpler sentences: Baines rescues him and they escape in the lifeboat narrowly escaping the exploding ship. Tragically Tom dies from his injuries in Baines' arms.