Assuming that the percent composition that is given is based on volume, therefore amount og agarose needed would simply be the product of the fractional composition and the total volume of the solution, that is:
required agarose = 0.01 * 40 mL
required agarose = 0.4 mL