If you take 80/18 as a number of moles of water, then yes, you are interested in the number of moles in the original mixture, so you multiply by 80/5=16. You can also calculate molar fraction in a 5 mL sample, dividing 0.02304 by (5/16+0.02304)
Note: molar fraction requires TOTAL number of moles, not just number of moles of solvent.
Note 2: whole procedure is slightly wrong, as 5 mL of the mixture is not exactly 1/16 of the original - you can't be sure volume of the solution didn't change from 80 mL after dissolving the acid. It changed for sure, so the sample taken was no longer exactly 5/80.