The ratio of the sides of a triangle is 2:4:9. If the perimeter is 165 inches, what is the length of the longest side?