Child can walk up to 0.18 m on the plank from the edge of the dock without falling into the water.
The child can only walk on the dock till the moment of the child mass is balanced by the weigh of the plank
Consider the free body diagram
Taking the moment about point O
38×d=7×1.02
d=0.18 m