Compose melodies using the provided motif and adhering to the designated musical form.
X:1
L:1/8
M:2/2
K:G
['B d2 (3(efg) BGdB Aaag fefd gfgd', 'BGDG EGDB'  
X:1
L:1/8
M:2/2
K:G
 B | d2 (3(efg) BGdB | Aaag fefd | gfgd ecdB | cedc BG G :: c | BGDG EGDB | cBAB cedc |1 
 BGDG EGDB | cedc BGG :|2 Bggf eaag | fdcA BG G |]  