Develop musical compositions in line with the specified format and incorporating the provided musical theme.
X:1
L:1/8
M:9/8
K:G
['', 'B AGE A2 B G2 B A2', 'dgg edB'  
X:1
L:1/8
M:9/8
K:G
 B |: AGE A2 B G2 B | A2 G ABd e2 d | gdB AGE G2 A | GEE GAB d2 B :: dgg edB TBAB | dgg edB Td2 B | 
 dgg edB TBAB | GEE GAB Td2 B :|  