Answer: B
In the gas phase there is no solvation, so only the +I effect of the alkyl groups matters and basicity increases with the number of methyl groups. The order is therefore tertiary > secondary > primary > ammonia. The order in the second option is the aqueous order, where solvation of the ammonium ion also matters.