Using the given motif, compose a musical work that follows the prescribed musical form.
X:1
L:1/8
M:6/8
K:Amin
['eAA (AGA) (BAB) g3 (eg).g', 'A2 B eaa aga bab g3 aa'  
X:1
L:1/8
M:6/8
K:Amin
 EAA | (AGA) | (BAB)(GAB) | eAA (AGA) | (BAB) g3 | (eg).g (de).e | (Bd).d (GAB) | eAA (AGA) | 
 (BAB) g3 | (eg).g dff | BE^G | A2 :| B | eaa aga | bab g3 | aa e3 | gfg d3 | 
 .e(e/f/e/d/) .B(B/c/B/G/) | .A(A/B/A/G/) E3 | EAA (AGA) | (BAB) g3 | (eg).g (de).e | BE^G A2 :|  