Design melodies by integrating the specified musical pattern and the provided motif.
X:1
L:1/8
M:4/4
K:G
['B4 BA/B/ c>F G4 G4', 'e4 efge d4 dgfe d2 dg fgaf'  
X:1
L:1/8
M:4/4
K:G
|: B4 BA/B/ c>F | G4 G4 | B4 BA/B/ c>F | G4 G4 | c4 cGGA | B4 Bd (3dcB | A4 AB c>F | G4 G4 :: 
 e4 efge | d4 dgfe | d2 dg fgaf | g4 gdgf | e4 efge | d4 dgfe | d2 dg fgaf | g4 g4 :|  