Row Of Students

In a row of students Rahul is 12th from the left and Shyam is 17th from the right. When they interchanged their positions, Shyam becomes 27th from the right.

How many students are between Shyam and Rahul?

Before you go for the answer please comment your answer!

Answer: