You might be thinking that the numbers on this diagram are backwards. On a handheld compass, south is 180 degrees (so 18 in runway terms) and west is 270 (27). But the “W” is numbered 9 because the runway number is connected to the direction the plane is traveling.