In a rock song, the guitar riff is 6 measures long, the bass part is 16 measures long, and the keyboard part is 5 measures long. When the song begins, the guitar and bass play together for 3 measures before the keyboard comes in. The patterns will keep repeating until the bridge. The bridge of the song will start when all of the patterns finish together. If the bridge of the song is to occur as early as possible, in what measure will the patterns stop (just) before the bridge?