Formulate melodies by adhering to the specified pattern and supplied motif.
X:1
L:1/8
M:4/4
K:G
['fgBG EGBd c2 BG AGEF G2 GF', 'cEGc BdBG'  
X:1
L:1/8
M:4/4
K:G
|: fgBG EGBd | c2 BG AGEF | G2 GF GBde | A2 AG FAdf | fgBG EGBd | c2 BG AGEF | G2 GF GBde | 
 AGFA GABd :: c4 ABBB | AGFG AGAB | cEGc BdBG | AGFG ABde | cEGc BdBG | DGAG FGAB | c/B/Acd ABBB |1 
 AGFG ABde :|2 AGFG ABdf ||  