Construct melodies utilizing the provided motif and adhere to the outlined musical structure.
X:1
L:1/8
M:6/8
K:Amix
['c2 A ABA', 'c2 e'  
X:1
L:1/8
M:6/8
K:Amix
|: c2 A ABA | d2 e fed | c2 A ABA | B2 g gdB | c2 A ABA | d2 e fec | d2 f c2 e | B2 g gdB :: 
 c2 e efe | ef^g a3 | c2 e efe | B2 g gdB | c2 e efe | ef^g a2 e | d2 f c2 e | B2 g gdB :|  