Complex sentence: Then, the king gives Tom a job: to slay the dragon that lives in the cave.
Split into simpler sentences: Then, the king gives Tom a job. That is to slay the dragon that lives in the cave.