Let $R$ be an equivalence relation on $X$ and $S$ an equivalence relation on $X/R$. Find an equivalence relation $T$ on $X$ such that $(X/R)/S$ is in one-to-one correspondence with $X/T$ under the mapping $[[x]R]S\mapsto[x]T$.
Not much to add. I found this question in Elements of Abstract Algebra by Allen Clark. Any help would be appreciated. Cheers!
Hint
Define
$$(u,v) \in T \iff (\exists \mathcal S \in (X/R)/S)(u \in \mathcal S \wedge v \in \mathcal S)$$