let the distance of pillar is "r" from one end of the slab
So here net torque must be balance with respect to pillar to be in balanced state
So here we will have
here we know that
mg = 19600 N
Mg = 400,000 N
L = 20 m
from above equation we have
so pillar is at distance 10.098 m from one end of the slab