Aiden is replacing a tile in 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 ?