Formulate melodies by integrating the designated musical pattern and the supplied motif.
X:1
L:1/8
M:2/4
K:G
['Bd dg ec cd BG', 'BG dG'  
X:1
L:1/8
M:2/4
K:G
 c | Bd dg | ec cd | BG GB | AF FA | Bd dg | ec cd | BG AF | G2 G :: d | BG dG | BG dG | AF cF | 
 AFcF | BG dG | B/A/B/c/ dg | ec AF | G2 G :|  