Develop a musical piece using the given motif and adhere to the outlined structure.
X:1
L:1/8
Q:1/8=180
M:6/8
K:Amin
['g ABA ABd edB A3 BAB GAB', 'A2 ^g a^ga efg a^ge a3 =gea'  
X:1
L:1/8
Q:1/8=180
M:6/8
K:Amin
|: g | ABA ABd | edB A3 | BAB GAB | dBA G3 | dcd efg | age a3 | gea edB | A3 A2 :: ^g | a^ga efg | 
 a^ge a3 | =gea g^fg | BGB G3 | ABA ABd | ede a3 | gea edB | A3 A2 :|  