Construct musical compositions utilizing the given motif within the outlined structure.
X:1
L:1/8
M:6/8
K:D
['fef d2 B AFA DFA', 'fga fga'  
X:1
L:1/8
M:6/8
K:D
 fef d2 B | AFA DFA | fed g2 f | ecd e2 a | fef d2 B | AFA DFA | Bcd eag |1 fdc d2 g :|2 
 fdc d2 e |: fga fga | fga afd | efg efg |[M:9/8] efg fef d2 e |[M:6/8] fga fga | fga afd | 
[M:9/8] efg aba a2 g :|  