Construct musical melodies following the designated letter arrangement and the given motif.
X:1
L:1/8
M:4/4
K:D
['F>G A>B A/G/F/D/ Adcd FGAB =c2 d/^c/B/c/', '(3A/B/c/ d2']  
X:1
L:1/8
M:4/4
K:D
 F>G | A>B A/G/F/D/ Adcd | FGAB =c2 d/^c/B/c/ | A>BAG FDGF | D2 G2 G2 F>G | A>B A/G/F/D/ Adcd | 
 FGAB =c2 d/^c/B/c/ | A>BAG FDGF | D2 D2 D2 || (3A/B/c/ | d2 d>e f2 ed | e2 d/c/A/G/ A2 (3A/B/c/ | 
 d2 dd e2 d/c/A/B/ | =c2 d>d d3 A | d2 d2 de=cA | AGFD cdcA | A>BAG FDGF | D2 D2 D2 ||  