The volume of a cylinder varies jointly with the base (area) and the height. The volume is 40 inches^3 when the base (area) is 6 inches^2 and the height is 20 inches. Find the volume of the cylinder (after finding the variation constant) when the base (area) is 8 inches^2 and the height is 12 inches.