A rectangular rug covers 1/2 of a rectangular floor 9 feet wide and 12 feet long. If the dimensions of the rug are in the same ratio as those of the floor, how many feet long is the rug?