Develop a musical piece using the given motif and adhere to the outlined structure.
X:1
L:1/8
Q:1/2=60
M:2/2
K:Emin
['A/A/A AA B2 GB c2', 'egeg dgdB'  
X:1
L:1/8
Q:1/2=60
M:2/2
K:Emin
|: E | A/A/A AA B2 GB | c2 (TB>A) d/c/B/A/ GB | A/A/A AA B2 GB | c2 (TB>A) GEE |: g | egeg dgdB | 
 efef geea | egeg dgdB | c2 (B>A) GEE :|  