Develop a musical composition incorporating the given motif and maintaining the required musical form.
X:1
L:1/8
Q:1/8=180
M:6/8
K:G
['G2 G AFD GBG D2 D', 'd2 d edc dgd Bcd'  
X:1
L:1/8
Q:1/8=180
M:6/8
K:G
|: D | G2 G AFD | GBG D2 D | E2 E cBA | FAF DEF | G2 G AFD | GBG D2 D | EFG AFD | G3 G2 :: B/c/ | 
 d2 d edc | dgd Bcd | e2 e a2 g | f2 d dBc | d2 d edc | dgd Bcd | efg afd | g3 G2 :|  