Chemistry is the branch of science that deals with the composition, structure, properties, and changes of matter. Matter is anything…