Develop a musical composition utilizing the presented motif and adhering to the required structure.
X:1
L:1/4
M:4/4
K:G
['A B', 'd g'  
X:1
L:1/4
M:4/4
K:G
 G A B c | d d/e/ d/c/ B | c c/d/ c/B/ A | B B/c/ B A | G A B c | d d/e/ d g | f/e/d/c/ B A |1 
 G z A2 :|2 G z d2 || g g f e | d d/e/ d/c/ B | c c/d/ c/B/ A | B B/c/ B d | g g f e | d d/e/ d g | 
 f/e/d/c/ B A |1 G z d2 :|2 G z A2 ||  