Generate music by following the outlined musical form presented using letters and incorporating the provided motif.
X:1
L:1/8
Q:1/8=140
M:6/8
K:G
['E>DE G2', 'c Bdc BAG A>BA ABc dcB A2']  
X:1
L:1/8
Q:1/8=140
M:6/8
K:G
"^allegretto" G | E>DE G2 D | E>DE G2 B | dcB AGA | BAA ABG |"^5" E>DE G2 D | E>DE G2 B | 
 d>cB AGA | BGG G2 :| G |"^9" GAB c2 c | Bdc BAG | A>BA ABc | dcB A2 G |"^13" EDE G2 D | EDE Gg>e | 
 dcB AGA | BGG G2 :|  