The end of Chapter 29 narrates the end of the attempt of the Duke and the King to imitate the two Wilks brothers and therefore gain the inheritance and lots of other money besides from the sale of the farm and other property. The somewhat dramatic conclusion--the discovery of gold on the breast of the corpse of Peter Wilks--gives Huck the opportunity he has been looking for to exit the place rapidly, going back to the raft. One of the reasons that Huck was so eager to run away was that he wanted to be "shot" of the Duke and the King and return to his wanderings with Jim alone. It is clear that Jim desires this as well:
But Jim fished me out, and was going to hug me and bless me, and so on, he was so glad I was back and we was shut of the king and the duke...
However, unfortunately, it is not to be, and the King and the Duke catch up with them, producing a correspondingly sad reaction in Huck:
So I wilted right down on to the planks then, and give up; and it was all I could do to keep from crying.
In spite of his best efforts, Huck has not managed to escape from the King and the Duke and is still lumbered with them.