The locomotive is 40 ft long.
40 ft = 40 * 12 in. = 480 in.
The locomotive is 480 inches line.
The model is 16 inches long.
480/16 = 30
The real locomotive is 30 times longer than the model.
A window on the locomotive is 30 times wider than a window on the model.