Formulate melodies by integrating the designated musical pattern and the supplied motif.
X:1
L:1/4
M:2/2
K:Amix
['e/f/e/d/ c A B', 'e/f/e/d/ c d e'  
X:1
L:1/4
M:2/2
K:Amix
 e/f/e/d/ c A | B G B d | e/f/e/d/ c A | B G A2 :: e/f/e/d/ c d | e f g g | e/f/e/d/ c d | 
 e a a2 :|  