Okay…so in the given problem, there are 2 right angled triangles formed.
One is above the rope, and second one is below the rope.
I used the triangle which is formed above the rope, for which i used sin(theta) giving me WA (I think it is wrong because of greater precision error in finding the angle of upper triangle).