Complex sentence: At the task, Harry has to pass a Hungarian Horntail, which he does by summoning his Firebolt broomstick, and finishes the task tied for first with Krum.
Split into simpler sentences: At the task, Harry has to pass a Hungarian Horntail. Harry passes by summoning his Firebolt broomstick, and finishes the task joint top with Krum.