Develop melodic lines based on the specified musical pattern and the provided motif.
X:1
L:1/8
M:4/4
K:D
['A2 GE', 'cAAB cdeg'  
X:1
L:1/8
M:4/4
K:D
 A2 GE FD D2 | EFGD EFGE | A2 GE FDDF | EFGE A2 AB :: cAAB cdeg | fdec dcAB | cAAB cdeg |1 
 fdec d2 ed :|2 fdec d2 ec ||  