The Law of Conservation of Mass is a key scientific principle. It shows that the total mass in a closed…