He received the punishment of being forced to shoot an apple off the head of his son, Walter, or else both would be executed.
His punishment was having to shoot an apple off the head of his son, Walter. If he did not, both would be executed.