Ball A has a mass of 8kg. Ball B has twice the mass of ball A. The two balls collide and stick together in a perfectly inelastic collision. After the collision the combined balls are at rest. If the velocity of ball A before the collision was 18m/s, what was the velocity of ball B before the collision?