# How to calculate this energy for a given signal?

So the question Im asking can be seen in the picture below.The d at the end of the question stands for the minimum euclidian distance.

Mostly I just want to know how to calculate the energy for each signal. I know how to calculate the energy efficiency between two constellations (10 * log(E1/E2)).

Thank you

If your question really is how to calculate the energy of a given signal $$x(t)$$ then the answer is
$$E_x=\int_{-\infty}^{\infty}|x(t)|^2dt\tag{1}$$