Develop a musical composition incorporating the given motif and maintaining the required musical form.
X:1
L:1/8
M:2/2
K:D
['A FDAF d2 dA d2 df eEEA', 'gfed cAeg'  
X:1
L:1/8
M:2/2
K:D
 A | FDAF d2 dA | d2 df eEEA |1 FDFA e2 eB | (cd)eg fdd :|2 FDAF dABG | FAdg fdd || g | fede fgaf | 
 gfed cAeg | fedefgaf | ecdB Addg | fdgg fgag | gfed cAeg | fdgb afge | fdec dDD |]  