Construct melodies utilizing the provided motif and adhere to the outlined musical structure.
X:1
L:1/8
M:6/8
K:D
['F2 E', 'ABd e2 f d2'  
X:1
L:1/8
M:6/8
K:D
|: F2 E EDE | F2 D DED | F2 E DFA | d2 e fdA | F2 E EDE | F2 D DED | AFE DFA | B3 d3 :: ABd e2 f | 
 d2 c B2 A | ABd e2 f | d2 A B3 | ABd e2 f | d2 c B2 A | AFE DFA | B3 d3 :|  