Compose melodies based on the specified pattern and provided motif.
X:1
L:1/8
M:6/8
K:G
['GFG D2 G B3 G3 ABA E2', 'dcB A^GA cBA G2 c B2 A'  
X:1
L:1/8
M:6/8
K:G
 D | GFG D2 G | B3 G3 | ABA E2 F | E3 D3 | GFG D2 G | B3 G3 | ABA E2 F | G3 G2 :| d | dcB A^GA | 
 cBA G2 c | B2 A E2 F | AFE D3 | dcB A^GA | cBA G2 c | B2 A E2 F | G3 G2 :|  