Compose a musical piece using the given motif and adhering to the outlined musical form.
X:1
L:1/8
M:6/8
K:D
['GDD EDD GAB d2 B ded B2', 'ded B2 A'  
X:1
L:1/8
M:6/8
K:D
|: GDD EDD | GAB d2 B | ded B2 A | G2 E EDE | GDD EDD | GAB d2 B | ded B2 A | AAG G3 :: Bdd Bdd | 
 edB d2 d | ded B2 A | G2 E EDE | GDD EDD | GAB d2 B | ded B2 A | AAG G3 :|  