Formulate melodies by integrating the designated musical pattern and the supplied motif.
X:1
L:1/8
M:2/4
K:G
['G B2 d g3 b a>g', 'B>d Bd'  
X:1
L:1/8
M:2/4
K:G
|: G B2 d | g3 b | a>g fe | dc BA | G B2 d | g3 b | a>g fe | d4 :: B>d Bd | c>e ce | B>d Bd | A4 | 
 GB dg | e3 b | a>g fa | g4 :|  