Formulate melodies by adhering to the specified pattern and supplied motif.
X:1
L:1/8
Q:1/4=90
M:2/4
K:D
['d/e/f/e/ dd B/c/d/c/ AF GFED CE E2', 'A2 A/B/c/B/ AB c/d/e/d/ cd efgf e/d/c/B/', 'dcdc B2 Ad'  
X:1
L:1/8
Q:1/4=90
M:2/4
K:D
 d/e/f/e/ dd | B/c/d/c/ AF | GFED | CE E2 | d/e/f/e/ dA | B/c/d/c/ Bc | dcBA | E^G A2 :: 
 A/B/c/B/ AB | c/d/e/d/ cd | efgf | e/d/c/B/ A2 | BGdB | AFfe | gfed | Ac d2 :: dcdc | B2 Ad | 
 cdef | gage | dcdc | B2 Ad | cd"^qu's" f/e/d/c/ | d4 :|  