Construct a musical composition following the designated musical form and incorporating the given motif.
X:1
L:1/8
M:12/8
K:D
['A/G/ F^EF G2 B A2 F A2', 'F2 d'  
X:1
L:1/8
M:12/8
K:D
|: A/G/ | F^EF G2 B A2 F A2 d | cAe c2 e dfe dAG | F2 F GE/F/G AFd A3 | c2 A cAe dg/f/e d2 :: g | 
 f2 f ge/f/g afd F2 d | cAe c2 e dAf d2 A |1 f^ef g2 g af/e/d F2 d | cAE cAe dce d2 :|2 
 F^EF GEB A^GA B2 g | fAf eAe dAf d2 ||  