✨ ベストアンサー ✨
関係代名詞で困ったときの鉄則の一つ は「元の文に戻して考える」です。
今回、元の2文に戻してみると、
The thing is important. It(=the thing) is to make people happy.
→the thing which(=what) is important is to make…
となります。
ちなみに、原理を説明すると上のようですが、what is importantは頻出なので、覚えておくことをおすすめします。
なるほど、一度2文に切って考えて見るとわかりやすいですね!ありがとうございますm(_ _)m