Formulate melodies by adhering to the specified pattern and supplied motif.
X:1
L:1/8
M:4/4
K:G
['fAeA EAAG EDEF', 'A2 eA fAeA'  
X:1
L:1/8
M:4/4
K:G
 EAAG EGDG | EA (3AAA fAeA | EAAG EDEF | GB (3BBB cGBG | EAAG EGDG | EA(3AAA fAeA | EAAG EDEF | 
 GABd dBGB || A2 eA fAeA | fAeA BAGB | A2 eA fAeA | d2 BG DGBG | A2 eA fAeA | fAeA BAGB | 
 A2 ef gfge | d2 BG DGBG ||  