Design melodies by integrating the specified musical pattern and the provided motif.
X:1
L:1/8
M:2/4
K:G
['D GGBG AAcA GG/G/B/B/B A2 z d']  
X:1
L:1/8
M:2/4
K:G
 D | GGBG | AAcA | GG/G/B/B/B | A2 z d | ddfe | dBGB | AA/A/d/d/c/c/ | B2 z |]  