Using the given motif, compose a musical work that follows the prescribed musical form.
X:1
L:1/4
M:4/4
K:G
['A G E', 'd B'  
X:1
L:1/4
M:4/4
K:G
"^A" g/f/ | e/e/ d B G | A G E D | G/G/G/G/ G/B/ d | e2 d g/f/ | e d B G/G/ | A G E G/G/ | 
 F A D E/F/ | G2 G3/2 d/ ||"^B" B d e f | g d B G/A/ | B d e f | g2 f g/f/ | e d B G | A G E G | 
 F A D E/F/ | G2 G ||  