Compose a musical piece using the given motif and adhering to the outlined musical form.
X:1
L:1/8
Q:1/8=100
M:2/4
K:A
['A>G AB cd ec dc', 'ec dc'  
X:1
L:1/8
Q:1/8=100
M:2/4
K:A
"^moderate" (3EFG | A>G AB | cd ec | dc AF | =G2 (3EF^G | A>G AB | cd ec | dc A>A | A2- A || d/e/ | 
 f>e fa | =gf ec | dc AF | =G2 (3EF^G | A>G AB | cd ec | dc A>A | A4 |]  