A sporting goods store sells triangular team pennants in two sizes. The base of one pennant is 18 in. and the length of the side is 9 in. The other pennant is similar to the larger pennant and has a base that is 6 in.

What is the length of the side of the smaller pennant?