We use the formula for a camera to relate the size of the image, the size of the landscape, the height of the camera, and the focal length: \[ \frac{\text{Size of image}}{\text{Size of landscape}} = \frac{\text{Focal length}}{\text{Height of camera}}. \] Here, the size of the image is \( 2 \times 2 \) cm (so the area is 4 cm\(^2\)), the size of the landscape is 400 km\(^2\), and the height of the camera is 18 km. Substituting these values into the equation and solving for the focal length, we find that the focal length is \( 0.9 \, \text{cm} \).
Final Answer: \( 0.9 \, \text{cm} \).