First lens:
$$
\frac{1}{10} = \frac{1}{30} + \frac{1}{d_{i1}}
$$
so
$$
\frac{1}{d_{i1}} = \frac{1}{10} - \frac{1}{30} = \frac{1}{15},
$$
and
$$
d_{i1} = 15\ \text{cm}.
$$
That image is 15 cm to the right of the first lens, so it is 5 cm to the left of the second lens. Thus the second lens has object distance
$$
d_{o2} = 5\ \text{cm}.
$$
Second lens:
$$
\frac{1}{15} = \frac{1}{5} + \frac{1}{d_{i2}}.
$$
So
$$
\frac{1}{d_{i2}} = \frac{1}{15} - \frac{1}{5} = -\frac{2}{15},
$$
and
$$
d_{i2} = -7.5\ \text{cm}.
$$
The negative sign means the final image is virtual and on the left side of the second lens.
The magnifications are
$$
m_1 = -\frac{15}{30} = -\frac{1}{2},
\qquad
m_2 = -\frac{-7.5}{5} = \frac{3}{2}.
$$
So the total magnification is
$$
m = m_1 m_2 = -\frac{3}{4}.
$$
The final image is virtual, inverted relative to the original object, and slightly smaller.