How auto lp work in safemoon

would love if anyone can just simply explain to me how the auto lp in the safemoon works , like 5% fee is taken from transaction and that liquidity fees then goes to the address of the token … then how can i take those lp back , like elongate community is doing , on a weekly basis they take 60% of funds from the 5% generated liquidity funds and then do charity , but i dont understand how they take that 60% cause those tokens are locked in the smart contract address , what should i do , can we access them and transfer to another address?