The equation for direct variation is
p = k*q
where k is the constant of proportionality
Putting in what we know
166 lbs = k * 20 gallons
Divide each side by 20 gallons
166 lbs / 20 gallons = k
8.3 lbs per gallon = k
The constant of proportionality is 8.3 pounds per gallon
We have 30 gallons
p = 8.3 lbs/ gal * 30 gal
p =249 pounds
When we have 30 gallons, it will weight 249 pounds
p = 8.3 lbs/gallon * g