An aqueous solution of a metal salt, M, gives a white precipitate with NaOH which…