[Figure not reproduced: Figure 2 (reproduced): uniform sand deposit, partially saturated above 2 m (S=0.6, w=30%) and saturated below (w=40%); effective stress sought at the element 5 m below ground level. See the official exam paper.]
Given. $G_s=2.7$; layer 1 (0–2 m): $S=0.6$, $w=30\%$; layer 2 (2–5 m): $w=40\%$. The water table sits at the 2 m boundary (Check: below it the soil is taken as fully saturated, $S=1$, since no separate $S$ is stated there).
Find. Effective stress $\sigma'$ at 5 m depth.
Approach. Get each layer's void ratio from $e=wG_s/S$, then its unit weight from $\gamma=(Se+G_s)\gamma_w/(1+e)$; sum $\gamma\cdot H$ down to 5 m for total stress, subtract hydrostatic pore pressure measured from the water table.