Craft a musical composition with the supplied motif and conforming to the necessary format.
X:1
L:1/8
M:6/8
K:A
['EFG A2 ABAB c6 A2 z cBA']  
X:1
L:1/8
M:6/8
K:A
 EFG | A2 ABAB | c6 | A2 z cBA | G2 GBAF | E3 EFG | A2 ABAB | c6 | A2 z cBA | G2 GBAF | E3 B2 B | 
 dcB A2 A | AGA B2 B | dcB A2 A | AGA E2 A | c2 eBAB | c3 E2 A | c2 eBcB | A3 |]  