During water treatment for town supply, water is passed through layers of send beds in…