The speed of railway engine is 42 km per hour when no compartment is attached, and the reduction in speed is directly proportional to square root of the number of compartments attached. If the speed of the train carried by this engine is 24 km per hour when 9 compartments are attached, the maximum number of compartments that can be carried by the engine is: