24mm and 30mm. A 12" shifting spanner is fine. You only have to undo the smaller nut to pull the axle out. The big one holds the sprocket carrier and can stay put. That way you don't upset chain tension or sprocket alignment. Don't forget to unclip the rear brake hose from its clip so you can withdraw the caliper. You can get that wheel out in a minute, no joke.