In this Minuet section B is longer than section A and the first 8 measures of section A are repeated at the end. This is known as rounded binary form. Section B is often on a different key. Most often on the dominant key. In this piece section B starts in E minor before returning to G major in measure 25: