Compose a piece of music based on the provided motif and adhering to the outlined musical structure.
X:1
L:1/8
M:6/8
K:Amix
['eAA fed eAA f2 d', 'A2 a aba'  
X:1
L:1/8
M:6/8
K:Amix
 (g/f/) | eAA fed | eAA f2 d | eAA gfe | dBG Ggf | eAA fed | eAA f2 d | agf gfe | dB^G A2 :: B | 
 A2 a aba | gef gdB | A2 a aba | gfe dcB | A2 a aba | gef g2 f | gfe efg | dB^G A2 :|  