Here's the general idea if the LEDs are multiplexed by the Arduino directly. Only one column is turned on at a time. If using the MAX7219 or some such external multiplexer, the LED array is identical, the five rows and five columns would then connect directly to the multiplexer chip, and the resistors and transistors would be eliminated.
