Develop a musical piece using the given motif and adhere to the outlined structure.
X:1
L:1/8
Q:1/8=160
M:9/8
K:Amin
['BAG EGG', 'BAB dBG'  
X:1
L:1/8
Q:1/8=160
M:9/8
K:Amin
 A | BAG EGG EGG | BAG EGG c2 A | BAG EGG EGG | AGE GAB c2 :: A | BAB dBG dBG | BAB dBG c2 A |1 
 BAB dBG dBG | AGE GAB c2 :|2 GBd g^fe dBG | AGE GAB c2 A |]  