Construct a musical composition utilizing the provided motif and conforming to the specified structure.
X:1
L:1/8
M:12/8
K:G
['e2 d', 'G2 d'  
X:1
L:1/8
M:12/8
K:G
|: A | BcB BAB e2 d B2 d | ABA A^GA B2 A G3 | B2 B BAG e2 d BdB | ABA A^GA G3 G2 :: d | 
 gag gfg efg dBG | A2 A A^GA B2 A G2 d | g2 g g2 f ege d2 B | ABA A^GA =G3 G2 :|  