Complex sentence: To Koenig's amazement, the scheming youth sets him free; once he is out of sight, Malic alerts the ship.
Split into simpler sentences: To Koenig's amazement, Malic sets him free. Once he is out of sight, the scheming youth alerts the ship.