Construct melodies utilizing the provided motif and adhere to the outlined musical structure.
X:1
L:1/8
M:2/4
K:G
['DG B2 GB d2 cA EF', '(Bd) d4 GG (GB) B4 DE FG'  
X:1
L:1/8
M:2/4
K:G
|:"^A" DG B2 | GB d2 | cA EF | AG E2 | DG B2 | GB d2 | cA EF | G z G z ::"^B" BB (Bd) | d4 | 
 GG (GB) | B4 | DE FG |1 A2 G2 | GA (Be) | d ^cc :|2 AG AB | ce dF | G z G z |]  