Two balls of different masses are set at a height of 3 m above the ground on a frictionless table. The ball on the left is of mass 2M and the ball on the right has a mass of 3M. They both are released simultaneously and slide onto the part of the table 2 m above the ground. What is the total energy of the system?