Aiden is replacing the tile in a rectangular kitchen. The length of the kitchen is nine feet shorter than three times its width, w. The perimeter of the kitchen is six times the width. If tiles cost $1. 69 a square foot, what is the total cost to tile the kitchen?.