Two walls and the ceiling of a room meet at right angles at point P. A fly is in the air one meter from one wall, eight meters from the other wall, and nine meters from point P. How many meters is the fly from the ceiling?