Formulate melodies by adhering to the specified pattern and supplied motif.
X:1
L:1/8
M:2/4
K:G
['DG GF/G/ AE', 'GG E/F/G/E/'  
X:1
L:1/8
M:2/4
K:G
|: B,/C/ | DG GF/G/ | AE E2 | F/G/A F/G/A | BG GF/E/ | DG GF/G/ | AE EG | F/G/A DE/F/ | G2 G :: 
[K:D] F/G/ | AA B2 | AA F2 | GG E/F/G/E/ | A/B/A/G/ F/G/A/F/ | AA B^A/B/ | AA FA | GG E/F/G/E/ | 
 DF D :|  