Compose melodies based on the specified pattern and provided motif.
X:1
L:1/8
M:2/4
K:G
['B A']  
X:1
L:1/8
M:2/4
K:G
 B d G B | B A A2 | A c F A | A G G2 | B B A G | F A3 | c c B A | G B3 | d d g f | f e3 | d d c A | 
 G4 ||  