Develop a musical composition utilizing the presented motif and adhering to the required structure.
X:1
L:1/4
Q:1/8=120
M:4/4
K:G
['B d', 'd d'  
X:1
L:1/4
Q:1/8=120
M:4/4
K:G
"^A" d | G B B d | d c c A | G B d g | d2 B c | e A c B | d G A B/c/ | A F D A | G2 G ||"^B" d | 
 d g g f | e d d d | d g g f | e3 d | d g g f | e d c B | A B c d | e3 ||  