A sample of hard water contains some calcium sulphate and calcium hydrogen carbonate. The total…