Design melodies by integrating the specified musical pattern and the provided motif.
X:1
L:1/8
M:2/2
K:G
['DGG>A G>AGD EAA>B A>BAG GABc d(e/f/ g)d', 'A>BAG Ggg>a g>agd eaa>b a>bag'  
X:1
L:1/8
M:2/2
K:G
|: DGG>A G>AGD | EAA>B A>BAG | GABc d(e/f/ g)d | (e/f/g) B>g A>BAG :: Ggg>a g>agd | eaa>b a>bag | 
 bagf d(e/f/ g)d | (e/f/g) Bg A>BAG | Ggg>a g>agd | eaa>b a>bag | (b/a/)g (a/g/)f d(e/f/) gd | 
 (e/f/g) dB A>BAG |]  