Compose music following the outlined musical form presented in alphabet characters, along with the provided motif.
X:1
L:1/8
Q:1/4=112
M:6/8
K:G
['(ed)B gfg', 'd2 B']  
X:1
L:1/8
Q:1/4=112
M:6/8
K:G
"^Allegretto" f | g>fe (ed)B | gfg G2 B | (gf)e edc | dBA A2 f | (gf)e (ed)B | gfg a2 b | 
 g>fe efg | dBA A2 :: B/c/ | d2 B d2 B | gfg G2 B/c/ | d2 B d2 g | ecA A2 B/c/ | d2 B d2 B | 
 gfg !fermata!a2 f | g>fe efg | dBA A2 :|  