both of them don't have a better life. each of them have their
own worries. the king would probably wants the freedom of the
beggar, but the beggar would want the riches of the king.
the king probably wouldn't want to give up his treasure, and the
beggar wouldn't want to give up his freedom 
but me, personally i'd rather be a king