The CG exam will not say which of the two equations to use. It has to be determined by what is given.
There is this one for speed / consumption problems
con1/con2= (S1^3) / (S2^3)
And this one for distance / consumption problems:
con1/con2 = (S1^2 *D1) / (S2^2 * D2)