Construct a musical composition utilizing the provided motif and conforming to the specified structure.
X:1
L:1/8
M:5/8
K:G
['B AB', 'G AB ABG'  
X:1
L:1/8
M:5/8
K:G
 B2 G AB | d2 B AB | dBA BG | EDE GA | B2 G AB | d2 B AB | c2 B AB | GAF FG :: A2 G EG | AGE GA | 
 B2 G AB | ABG EG | A2 G AB | ABG AB | c2 B AB | GAF FG :|  