Given:
Water content, $w = 20% = 0.2$
Specific gravity of soil solids, $G = 2.5$
Fully saturated soil $⇒ S = 1$
We use the relation for void ratio in saturated soil:
$e = \dfrac{w \cdot G}{S} = \dfrac{0.2 \cdot 2.5}{1} = 0.5$
Now, porosity $n$ is given by:
$n = \dfrac{e}{1 + e} = \dfrac{0.5}{1 + 0.5} = \dfrac{0.5}{1.5} = 0.3333$
Therefore, porosity $n = 33.33%$