Formulate melodies by integrating the designated musical pattern and the supplied motif.
X:1
L:1/8
M:6/8
K:G
['', 'D2 B BAG BdB ABA GED G2', 'G2 A'  
X:1
L:1/8
M:6/8
K:G
 G2 E |: D2 B BAG | BdB ABA | GED G2 A | B3 AGE | D2 B BAG | BdB ABA | GED G2 A |1 BGG G2 E :|2 
 BGG GBd |: e3 edB | e3 edB | ded def | g2 e dBA | G2 A B2 d | ege dBA | GED G2 A |1 BGG GBd :|  