You are asking 2 different questions, and they describe totally different situations.
First question: If there is no net flow of solute into or out of the volume during change in volume of the solvent, the number of moles of solute remains the same. However, the concentration changes inversely with volume.
This refers to the same solution, but a smaller volume of it. The concentration is the same, so the number of moles changes directly with volume. Answer this by setting up a proportion:
(0.035711 moles)/(100 mL) = x/(5 mL)
x = (5 mL)(0.035711 moles)/(100 mL) = ? moles