In this problem, an initial solution is made and then from that a more dilute solution is made, so you have 2 concentrations to calculate
You need to determine the molar mass for glucose [(12g x 6) + (1g x 12) + (16g x6)]
Use the molar mass to convert 12.5 g glucose to moles by dimensional analysis:
12.5 g glucose x 1 mol glucose / ??g glucose = mol glucose (??g represents the molar mass)
Use the mol glucose and the solution volume (in L) to determine the molarity (concentration) of your initial solution: Molarity = moles glucose / L solution
To calculate the concentration of the dilute solution, use M1V1 = M2V2 where M1 is the molar concentration of the original solution, V1 is the volume of that original solution you withdraw, 0.25 L (must be in L rather than mL), and V2 is the final volume of the dilute solution, 0.5 L. Solve for M2, the concentration of the dilute solution.
For the final dilute solution you are asked to determine the mass of glucose in 100 mL, so you will again use the relationship between molar concentration and volume of solution (L) to determine moles of glucose:
Molarity = moles glucose / L solution or moles glucose = Molarity, M2 x 0.100 L.
Once you have this last calculation, convert moles glucose back to mass using the molar mass of glucose that you determined at the beginning of this solution.
moles glucose x molar mass glucose / 1 mol glucose = mass of glucose in the 100 mL of the dilute solution.