The area of a rectangle is three times the area of a square. What is the width of the rectangle if it's length is 24 in. and the side of the square is 12 in?