Craft a musical work in accordance with the given alphabetical guide of the desired layout and the presented motif.
X:1
L:1/8
M:6/8
K:G
['ged B2 A BGE G2 A B3', 'def gfg']  
X:1
L:1/8
M:6/8
K:G
 ged B2 A | BGE G2 A | B3 ABA | GBd e2 d | ged B2 A | BGE G2 A | B3 AGA | BGF G3 :: def gfg | 
 eaa eaa | bag e2 d | efg efg | def gfg | afd efg | edB AGA | BGF G3 :|  