Design melodies by integrating the specified musical pattern and the provided motif.
X:1
L:1/8
M:4/4
K:G
['BGGG G>AGE DEGA B2 AG', 'BGdG eGdG BGdG B2 AG'  
X:1
L:1/8
M:4/4
K:G
"_Allegro" BGGG G>AGE | DEGA B2 AG | cAAB A>BAG | ABcd e2 g2 | BGGG G>AGE | DEGA B2 AG | 
 ABcd egdB | ABcd e2 g2 || BGdG eGdG | BGdG B2 AG | cAeA gAeA | cAeA c2 BA | BGdG eGdG | 
 BGdG B2 AG | cBcd efgB | ABcd e2 g2 |]  