A designer models the gain of an amplifier by f(x)=x2 on the interval [a,3a], where a>0 is a setting of the device. At some point c in the interval, the gain f(c) equals the mean gain over the whole interval. The designer wants c in terms of a. What is the ratio ac?