yes, you can find energy with the information you are given.
the formula is Energy = Mass * the speed of light squared.
given the speed of light and the mass, which you have as 1,230,000 g and 299,792,458 m/s all you have to do is PEMDAS to find the missing component of the equation.
using PEMDAS, the E is exponent, and M is multiplication. Therefore, you must first square the speed of light before multiplying it by your mass.
Energy = 1,230,000 g (Mass, m) * 299,792,458² (Speed of Light, c)
E= 1,230,000 *89,875,517,873,681,764
E= 110,546,886,984,628,569,720,000
Hope this helps!