A flat screen television measures diagonally 40 inches and 24 inches in length. What is the width of the television?