Craft a musical piece that abides by the prescribed structural guidelines and the given theme.
X:1
L:1/8
Q:1/8=140
M:6/8
K:Amin
['z d>BA ABA GE^F G2 e d>BA', 'gBA ^GAB'  
X:1
L:1/8
Q:1/8=140
M:6/8
K:Amin
"^lively" z | d>BA ABA | GE^F G2 e | d>BA ABd | e^fa g2 d |"^5" e>aa a^g/a/b | a^f/^g/a =ge/f/g | 
 ^fg/f/e/d/ e=f/e/d/B/ | d/e/d/c/B/A/ ^GED |"^9" E>AA ABA | ^GAB B=g>e | dBA ^GEG | A3 A2 :| F | 
"^13" G>FE DCB, | A,>AA A,>AA | Add d/e/d/c/B/A/ | Bee e2 ^f |"^17" gdB gdB | Aaa a^ga | 
 b/c'/b/a/^g/b/ a/b/a/=g/^f/a/ | g/a/g/^f/e/d/ e/=f/e/d/c/B/ |"^21" gBA ^GAB | gBA ^GAB | 
 eAA ^GEG | A3 A2 :|  