Hello, only the second sentence is correct which is type 3 conditional.' had had' ( past perfect tense), and it must be completed with 'would/could HAVE BEEN'(would+HAVE+PAST PARTICIPLE). This sentence means that I didn't have a proper education so I didn't become rich.The condition and its result are in the past and hypothetical,so I can't change the condition anymore.
If you say "If I had a proper education, I would be rich" which is type 2 conditional , had (past simple), would be(would+infinitive without 'to'). It means that I don't have a proper education,and am probably not going to have it in the future, just imagining it. The condition is in the present and unreal.
Hope this helps )