During the celebration, after making up with Tom, Becky talks Tom into exploring a cave. Amy follows them. Tom and Becky go into a cave and Tom says to Becky that she is the prettiest girl who he ever seen. That made Amy very sad and she stopped to follow Tom and Becky. They get lost and Becky begins to lose hope to finding the exit. Tom sings a number, "Light at the End of the Tunnel" to try and reassure her that they will find a way out. Instead of finding an exit, they find treasure - and Joe. Meanwhile, the townspeople notice Tom and Becky missing and Amy, who saw Tom and Becky go into the cave, reveals where they are. The townspeople go to look for them in the cave. With Huck's help, Tom subdues Joe, causing a rockfall which kills Joe, and is reunited with the townspeople and Aunt Polly. In the end Amy becomes Huck's girlfriend (after being impressed with how he assisted Tom against Joe) and Becky becomes Tom's girlfriend. Amy is no longer jealous of Becky. The next day, Sid again tries to snitch on Tom, but it backfires, as Aunt Polly makes Sid paint the house instead of Tom. The movie ends with Tom, Becky, Huck and Amy having a picnic, during which Tom shows the others a gold coin and tells them about another treasure hunt.