Here, Tom Canty and the Prince are switching clothes so the Prince can go out and see Offal Court.
Tom is in the Prince's clothes and the Prince is in his clothes. The Prince has been found by Tom's father who thinks he is Tom. Then the Prince finds Miles who takes him to his home. Miles and the Prince get put in jail because of Sir Hugh. A the while, Tom is cracking nuts and trying to get people to belive he is not the Prince.
Here, the king has died, so the "Prince" who is really Tom, is going to be crowned. The real prince finds him and Tom apologizes and places the crown upon his head.
The Prince tells Miles he has the right to sit in his court and makes Tom his ward.
The Prince throws Sir Hugh in jail and promises to govern the kingdom with mercy.
The theme of this story is you should just be yourself instead of trying to be someone else.