Formulate melodies by adhering to the specified pattern and supplied motif.
X:1
L:1/8
M:2/2
K:G
['B2 AG', 'G2 ga bagf efga bagf e2 fg'  
X:1
L:1/8
M:2/2
K:G
 GA | B2 AG B2 AG | g2 fg e2 dc | B2 AG B2 AG | c2 Bc A2 dc | B2 AG B2 AG | g2 fg e2 dc | 
 Bdgd ecAF | G2 FA G2 :| ga | bagf efga | bagf e2 fg | agfe defg | agfe d2 ef | gfgd egdB | 
 cBAB cdef | g2 fg ecAF | G2 FA G2 :|  