Step 1: Use the formula for porosity.
The total porosity \( \phi \) is given by the equation:
\[
\phi = \frac{\text{Grain density} - \text{Bulk density}}{\text{Grain density}} \times 100
\]
Substitute the given values:
\[
\phi = \frac{2.7 - 2.3}{2.7} \times 100 = \frac{0.4}{2.7} \times 100 = 14.81%
\]
Thus, the total porosity of the sample is 14.81%.