Compose music following the outlined musical form presented in alphabet characters, along with the provided motif.
X:1
L:1/8
Q:1/8=160
M:6/8
K:G
['BAB G2', 'c BGB']  
X:1
L:1/8
Q:1/8=160
M:6/8
K:G
 c | BAB G2 F | E2 F G2 A | BAB G2 B | AFD D2 c | BAB G2 F | E2 F G2 A | BGB d2 B | AFD D2 :| c | 
 BGB ded | BGB d2 c | BGB dgd | ecA A2 c | BGB ded | BGB def | gfe d2 c |1 AFD D2 :|2 AFD DEF | 
 G6 |]  