Compose a musical piece utilizing the given motif as the foundation while maintaining the required musical form.
X:1
L:1/8
Q:1/8=160
M:3/4
K:F
['BA B2 g2 Ac f4', 'FE F2 d2 EG c4'  
X:1
L:1/8
Q:1/8=160
M:3/4
K:F
 f2 c2 B2 | A2 GA F2 | a2 g2 f2 | e2 de c2 | BA B2 g2 | Ac f4 | BA B2 g2 | Ac f4 | b2 a2 g2 | f6 :: 
 a2 g2 f2 | e2 de c2 | ag fe dc | =B2 AB G2 | FE F2 d2 | EG c4 | FE F2 d2 | EG c4 | f2 e2 d2 | 
 c4 de | f2 f2 c2 | d2 cd B2 | ga ba gf | e2 d2 c2 | BA B2 g2 | Ac fc BA | BA B2 g2 | Ac f4 | 
 (3(bag) f2 g2 | f6 :|  