Kinetic energy varies jointly as the mass and the square of the velocity. A mass of 15 grams and velocity of 3 centimeters per second has a kinetic energy of 27 ergs. Find the kinetic energy for a mass of 5 grams and velocity of 9 centimeters per second.