Formulate melodic passages using the specified musical pattern in combination with the provided motif.
X:1
L:1/8
M:4/4
K:Amix
['eaag efgf ea a2 ABcd eaag efge', 'eA A2'  
X:1
L:1/8
M:4/4
K:Amix
|: eaag efgf | ea a2 ABcd | eaag efge | afge d2 cd :: eA A2 efgf | eA A2 BAGB | AB=cd efge | 
 afge d2 cd :|  