Formulate melodies by adhering to the specified pattern and supplied motif.
X:1
L:1/8
M:6/8
K:D
['D2 D FDF A2 A AFD GFG', 'D2 A2 A FGA B2 B BG/A/B'  
X:1
L:1/8
M:6/8
K:D
 D2 D FDF | A2 A AFD | GFG B/c/dB | AFD E2 A | DED FD/E/F | ABA F2 d | cBA GFE | D3 D2 :| 
 A2 A FGA | B2 B BG/A/B | cdc ABc | dF/B/A dcB | ABA FGA | BGB d2 B | cBA GFE | D3- D2 :|  