How to drive 30 LEDs with a smaller amount of pins?
LEDs like that are commonly driven by shift registers.
A shift register takes 3 inputs from the arduino (Data, Enable and Clock), takes a (for example) 8 bit number, then outputs it on 8 different pins.
One example is like this: Shift Register 8-Bit - 74HC595