The height of a right triangle is 3 times the radius of the base. The volume of the cylinder is 24 cubic units. What is the height of the cylinder?