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>G (3(FED) FAAg', 'd2 fa a2 fd', '(3(ABc) d2 fa a2 fd cded (3(cBA)'  
X:1
L:1/8
M:2/2
K:D
 (dB) | A>G (3(FED) FAAg | fgec dcBd | A>G (3(FED) FAAg | fgec d2 :| (3(ABc) | d2 fa a2 fd | 
 cded (3(cBA) Bc | d2 fa a2 fd | (3(cBA) Bc d2 (3(ABc) || d2 fa a2 fd | cded (3(cBA) Bc | 
 defg abag | fgec dcdB |]  