Complex sentence: Harvick helped Hamlin to become the leader, but with twelve laps left, Harvick gained on Hamlin and claimed the first position with eleven lap remaining.
Split into simpler sentences: Harvick helped Hamlin to become the leader, but with twelve laps left, Harvick was gaining on Hamlin. Therefore, Harvick claimed the first position with eleven lap remaining.