Design melodies by integrating the specified musical pattern and the provided motif.
X:1
L:1/8
M:2/4
K:G
['d>Bc>A (B>G) G2 d>Bc>A B4 (D>FA>c) B>G', 'd4 d=fed ec c2 egfe f>d d2'  
X:1
L:1/8
M:2/4
K:G
|: d>Bc>A | (B>G) G2 | d>Bc>A | B4 | (D>FA>c) | B>G Te2 | A>FE>^c | d4 :: d=fed | ec c2 | egfe | 
 f>d d2 | e>c a2 | d>B g2 | e>cB>A | G4 :|  