Let us assume length of pole is L.
Length of the pole in Mud is = L x 4/7 = 4L/7
Length of the Pole which is pulled out = L x 1/3 = L/3
Length of the pole is still in mud = Length of the pole in Mud - Length of the Pole which is pulled out
Length of the pole is still in mud = 4L/7 - L/3
According to question,
Length of the pole is still in mud = 250
4L/7 - L/3 = 250
(4L x 3 - L x 7)/7 x 3 = 250
12L - 7L = 250 x 21
5L = 250 x 21
L = 250 x 21/5
L = 50 x 21
L = 1050