In a certain code language, 'x' represents '+', '÷' represents 'x', '-' represents '÷' and '+' represents '-'. Find out the answer to the following question.
In a row of boys, Amit is ranked 12th from top and Ratan is 15th from bottom. They interchange their position. Ratan now becomes 37th from bottom. How many total boys are there in the row?