Formulate melodies by adhering to the specified pattern and supplied motif.
X:1
L:1/8
M:2/2
K:G
['B2 AG', 'AGEG gfga gede gabg'  
X:1
L:1/8
M:2/2
K:G
 B2 AG BGGA | B2 AG Bdgd | B2 AG BGGB | AGBG AGEG :| | gfga gede | gabg agab | gfga gedB | 
 A2 BG AGEG | gfga gede | gabg a2 ga | bgaf gedB | A2 BG AGEG ||  