You're going to have 8 red anode and 8 green anodes, and 8 common cathodes,
8 red cathodes & 8 green cathodes, and 8 common anodes. You have to do some experimenting to determine what is where.
It is not hard.
Take 5V thru a resistor and a ground wire.
Touch them to two pins. Say pin 22 is Gnd to start - now touch the resistor to the other pins & see what lights up.
If you find a bunch, them you have a common cathode array (the rows in the picture below). Make a note of the low and which pins turn on for the anodes (the columns).
The pins that didn't have a light are likely other common cathodes. Move the Gnd to one of those, and what lights up.
If you don't find a bunch to start, switch the Gnd & resistor around, maybe you have a common anode part instead.
Be methodical, it is not hard to figure out.
typical common cathode part
typical common anode part