30 I/O needed for a project. Mega the way to go?

What are you using the pins for?

You may be better to use an Uno and shift register / LED driver chip.

Also if they are input switches, there are ways of combining these with resistors and just using one Analog input, or having a key matrix.