Kamya's new position is 13th from left. But it is the same as Preeti's earlier positon wihich is 6th form the right.
The row consists of (12 + 1 + 5) = 18 girls
Now, Preeti's new position is kamya's earlier position which is 5th from the left.
∴ Preeti's new position from the right = 18 - 5 + 1
= 13 + 1 = 14