 She then asked the prince to do so and he did all three.The princess told her father that it was the prince who retrieved the sword and showed him their matching rings.The king hanged the Red Knight, and the prince and princess were married.