The diagram above illustrates an isolated metal sphere carrying charge W in a medium whose…