Formulate melodies by integrating the designated musical pattern and the supplied motif.
X:1
L:1/8
M:2/2
K:D
['A d3', 'fdeg fdec A d3'  
X:1
L:1/8
M:2/2
K:D
 (FE)FG ABcB | A d3 Ad d2 | FEFG A2 cA | GBAG FD D2 | FEFG ABcA | A d3 defg | (3agf ge dfed | 
 cAGE FD D2 :: fdeg fdec | A d3 Ad d2 | f d3 fdcA | GBAG FDDc | fdeg fdec | A d3 defg | 
 (3agf ge dfed | cAGE FD D2 :|  