How many unpaired electrons are there in an atom of an element with the following…