Let the distance from Calcutta to Madras be $d$ km, and average speed for this part be $v_1$ kmph. Let the distance from Madras to Trivandrum be $0.3d$ km, and speed be $v_2$ kmph.
From Statement I alone: We know the ratio of distances but have no information on speed, so we cannot find $v_2$.
From Statement II alone: We know $v_2 = 2v_1$, but without distance ratio, we cannot find exact values.
Combining both: Using weighted harmonic mean for average speed, $(d + 0.3d)/(d/v_1 + 0.3d/v_2) = 40$. Substituting $v_2 = 2v_1$ allows solving for $v_1$, then finding $v_2$. Thus, both statements together are sufficient.