The Carnot cycle is reversible. If you know the efficiency as an engine is $\eta = W/Q_1$, remember that for the refrigerator, $Q_1 = Q_2 + W$. This means $Q_2 = Q_1 - W$. Since $\eta = 1/10$, $Q_1$ must be $100 \text{ J}$ for $10 \text{ J}$ of work. Thus, $Q_2 = 100 - 10 = 90 \text{ J}$.