Develop a musical composition incorporating the given motif and maintaining the required musical form.
X:1
L:1/8
M:9/8
K:G
['B2 B', 'A d2 B G A2 e Bcd'  
X:1
L:1/8
M:9/8
K:G
 d/c/ |:"G" B2 B BGB"Am" c2 A |"G" B2 B BGB"D7" A2 G |"G" B2 B BGB"Am" c2 A | 
"G" d2 B GAB"D7" A2"^(G)" G ::"Am" A2 e edc"Bm" Bcd |"Am" e2 A"D7" ABc"G" BAG |"G" G2 g gfe dBd | 
"G" g2 G GAB"D7" A2"^(G)" :|  