And with that, they would have the means to kill the troll.
He should offer the king a loan to clear the debt (six bushels of coins which the youth had earned), and in return, insist on accompanying the king as the fool, or royal jester, and purposely break the windows or whatever to draw the troll's ire.