Step 1: Understand the concept of buoyant force.
The apparent loss of weight in a fluid is equal to the buoyant force:
\[
F_b = W_{\text{air}} - W_{\text{liquid}}
\]
Step 2: Find buoyant force in water.
\[
F_{b,w} = 40 - 30 = 10 \, \text{N}
\]
Step 3: Find buoyant force in unknown liquid.
\[
F_{b,l} = 40 - 34 = 6 \, \text{N}
\]
Step 4: Use Archimedes’ principle.
Buoyant force is proportional to density of fluid:
\[
\frac{F_{b,l}}{F_{b,w}} = \frac{\rho_l}{\rho_w}
\]
Step 5: Substitute values.
\[
\frac{6}{10} = \frac{\rho_l}{1000}
\]
\[
\rho_l = \frac{6}{10} \times 1000
\]
\[
\rho_l = 600 \, \text{kg m}^{-3}
\]
Step 6: Final conclusion.
Thus, density of the liquid is:
\[
\boxed{600 \, \text{kg m}^{-3}}
\]