The energy associated with the emitted photon when a mercury atom changes from one state…