Density is the ratio of mass to the volume.
The mathematical expression is given as:

Now, density of isooctane = 
Volume = 
Since, 1 gallon = 3.78 L
So, 3.8 gal = 
= 
As, 1 L = 1000 mL
Therefore,
= 
Volume in mL = 
Put the values,


= 
Hence, mass of 3.8 gal of the gasoline is
.
You just switch them around
A simple way to go about this is that we look at the solubility curve, on the x axis we first look at the temperature and then the corresponding value of solute/100g H2O on the y axis, from the 4 curves above only NaNO3 has a curve that can accommodate 80g of salt at 40 without being Saturated since at 40 degrees it can accommodate 105g of salt to become completely Saturated.