Formulate melodies by integrating the designated musical pattern and the supplied motif.
X:1
L:1/8
M:2/4
K:G
['DGGG FA A2 cAGF AG']  
X:1
L:1/8
M:2/4
K:G
 DGGG | FA A2 | cAGF | AG G2 | DGGG | FA A2 | cAGF | AG G2 | dBBG | GE E2 | cBAG | FE D2 | DGGG | 
 FA A2 | cAGF | AG G2 | dBBG | GE E2 | cBAG | FE D2 | DGGG | FA A2 | cAGF | AG G2 |]  