The gear ratio of two gears is the ratio of the number of teeth of the larger gear to the number of teeth of the smaller gear. In a set of three gears, the ratio of Gear A to Gear B is equal to the ratio of Gear B to Gear C. Gear A has 36 teeth and Gear C had 16 teeth. How many teeth does Gear B have?