Total students in the class = 40
Ramesh is placed 6th from the top.
Pankaj is placed 13th from the bottom.
To find Pankaj's position from the top:
Position from top = Total students - Position from bottom + 1
Position from top = 40 - 13 + 1
Position from top = 28
Pankaj is placed 28th from the top.
Kambish is placed exactly in between Ramesh and Pankaj.
Ramesh's position from top = 6
Pankaj's position from top = 28
Kambish's position from top = 26+28
Kambish's position from top = 234
Kambish's position from top = 17
Therefore, Kambish is placed 17th from the top in the class.