Craft a musical arrangement that integrates the provided motif and upholds the required musical structure.
X:1
L:1/8
M:9/8
K:D
['E2 G G2 ^F G2 G', 'c2 =f e2 c c2 B c2'  
X:1
L:1/8
M:9/8
K:D
|: G | E2 G G2 ^F G2 G | A2 d d2 c BAG | E2 G G2 ^F G2 G | ABc d2 B c2 :: =f | e2 c c2 B c2 e | 
 d2 _B B2 A B2 d | c2 A A2 ^G A2 c |1 B2 G G2 B d2 :|2 ABc d2 B c2 ||  