Work and information processing in a solvable model of Maxwe