In a certain code language, '-' represents '+', '+' represents 'x', 'x' represents '÷' and '÷' represents '-'. Find out the answer to the following question.
Students are sitting in a row in which the position of X is 17th from the left and that of Y is 14th from the right. If they interchange their positions, X's position becomes 7th from the left. How many students are there in the row?