For a group of objects of the same material, the weight of an object varies directly with its volume. If an object that has a volume of 30 cubic inches weighs 24 ounces, what is the constant of variation?