Sorry I could have done a much better job above and also not include an error before posting. it looked like a fun exercise but chemistry 101 was a long time ago. I believe it is all correct above now. Long story short, compound solution using stock solutions and then adding is usually an easy way to do this and that how my brain works with the math. If you have each solution at the target osmolarity it will have the same osmolarity. The link above has some math too put in a different way.
Osmolarity/Tonicity is measured as osmolarity. Roughly, 300 mosm/Kg is “isotonic.” For IV fluids stuff around 250-350 are considered “close enough.” Saline is 308 mOsm/L, and it contains 154mEq/L of sodium and 154mEq/L chloride. so, 9g of Sodium chloride dissolved into 1 liter of water, is 0.9% weight/volume (w/v) and would yield a isotonic solution of a total 308 mOsm/L, of which roughly half of the osmolarity is contributed from the sodium and the other half is chloride. So, you just count NaCl as “one item” here.
Per the link above, Table sugar for nutritional purposes is best considered as separate constitutive components as it is absorbed that way, so I think it is koser to consider table sugar (which as you said is one fructose and one glucose, and nearer-makes-no-difference considered the same as a glucose solution. A 5% solution of glucose is considered to be near-enough to an isotonic solution at 252 mOsmL. A 2.5% solution of fructose + a 2.5% solution of glucose would be similar, which is basically the outcome of table sugar in water solution. If you disolve 50g of table sugar in 1 L water, you will indeed have a near-isotonic solution and roughly 200 kilocalories (4 kilocalories/gram).
On to maltodextrin. Being a large molecule “glucose polymer,” and as such it contributes less “osmotic effect” per molecule, and you can cram a lot more calories per “unit osmolarity,” compared to free sugar. Apparently, 300g/1L is considered to be isotonic (note: this is taken from nutritional websites, maltodextrin is not used in basic IV solutions and thus isn’t on brain speed-dial…) so, in other words, you can pack 6 times the grams into a solution with maltodextrin to get a isotonic solution.
For your solution:
what added final volume do we want to have a ~300 mosm solution containing 20g of table sugar (sucrose) 40g of maltodextrin and 300mg (0.3g) of salt.
Sugar first:
need 5% solution to contain 20g, so 400mL (@ 50g/L)
Maltodextrin:
need to contain 40g at 300g/L, so, 130mL
Salt:
need contain 0.3g, at 9g/L(0.9%), that would be 33mL
Dissolve 20g sugar + 40g maltodextrin + 300mg salt in a end-volume of 563ml (ish), and you would have a isomolar concoction with your ingredients.
Or, 20g sugar + 40g maltodextrin in 530ml and you would have a non-salt isotonic solution.
Somebody check my math before trying to ingest that stuff…