Develop a musical composition utilizing the presented motif and adhering to the required structure.
X:1
L:1/8
Q:1/4=120
M:4/4
K:G
['(dB)(AG) B2', 'G2 de g>aba (ge)(dB) d2 g>a g2'  
X:1
L:1/8
Q:1/4=120
M:4/4
K:G
"^Moderate." G>A | B3 g (dB)(AG) | B2 d>e d2 AB | c3 e (dB)(AG) | B2 A>B A2 GA | 
 (Bd)(eg) (dB)(AG) | B2 g>a g2 Bc | dedB (cB)(AG) | E2 G>A G2 :: de | g>aba (ge)(dB) | 
 d2 g>a g2 AB | c>deg (dB)(AG) | B2 AB A2 GA | BABG EGAB | cBcd edef | gfga babd | e2 g>a g2 :|  