You are not quite there yet. The 10x part of the scale does not relate to energy.
i do not have the numbers at hand, but I think the energy increase is 32x for each point of magnitude.
I lost family members to a quake in 1998, which is perhaps why it sticks in my head.
Best of wishes to...