Suppose that c varies jointly with d and the square of g, and c = 30 when d = 15 and g = 2.
Find d when c = 6 and g = 8. Write the equation of the variation.​