The area of a rectangular swimming pool is 240 sq. ft. If the length of the swimming pool is 10 ft. and the width is x-2 ft., what is the value of x?