Compose music following the outlined musical form presented in alphabet characters, along with the provided motif.
X:1
L:1/8
M:2/2
K:F
['c2 f2', 'c2 ABAG F2 c2']  
X:1
L:1/8
M:2/2
K:F
 c2 | f2 ag f2 c2 | f2 cB A2 F2 | B2 AB G2 c2 | ABAG F2 c2 | f2 ag f2 c2 | f2 cB A2 d2 | 
 G2 c2 c3 ^B | c6 :: c2 | ABAG F2 c2 | ABAG F2 c2 | f2 ef d2 g2 | efed c2 a2 | b2 ab g2 a2 | 
 gfed c2 BA | B2 cd c2 de | f6 |]  