Two triangles are similar. The first triangle has a base length of 3 inches and a height of18 inches. The base length of the second triangle is 8 inches. What is its height?