Construct musical melodies following the designated letter arrangement and the given motif.
X:1
L:1/8
Q:1/8=333
M:2/2
K:D
['gbfe dBBA', 'AB d2 fd Adfd defd']  
X:1
L:1/8
Q:1/8=333
M:2/2
K:D
 D3 F A2 af | gbfe dBBA | B2 AF ABde | fded BdAF | (3DED DF A2 Af | gbfe dBBA | BAFB ABde | 
 fded B2 AB || | d2 fd Adfd | defd BAFA | defd Adef | gefd B2 AB | d2 fd Adfd | defd B2 Bc | 
 dedB BAFB ABde fdAF |]  