Sophie, the Duchess of Edinburgh drew a royal family tree and explained the line of succession to the throne at a school in Kent