Чем is the instrumenal of что, чём is the prepositional.