Formulate melodies by integrating the designated musical pattern and the supplied motif.
X:1
L:1/8
M:9/8
K:G
['B2 B{c} BAB', 'B2 e e2'  
X:1
L:1/8
M:9/8
K:G
 B2 B{c} BAB G2 A | B2 B{c} BAB dBA | B2 B{c} BAB G2 A | B2 e e2 B dBA :: B2 e e2 f g2 A | 
 B2 e e2 B dBA | B2 e e2 f g2 z | b2 a g2 e dBA :|  