collector to GND for pnp transistor, emitter to LEDs, don't forget resistor in the base circuit and current limiting resistors in anodes.
Also some octal-to-binary decoders have "open collector" output, which is "low" when active, so you can "sink current" with less components.
So in total
cathodes are columns, 14 LEDs in each column
anodes are rows, 40 LEDs in each row
at one time-slot you can light one column with 14 LEDs
by applying code to decoders, you will choose which column you will "turn ON"
by applying code to drivers, you will "turn ON" LEDs in column with active "1"
one more hint - if you want to save I/O lines of controller, you can drive decoders with counter, so you will need just one I/O instead of 6, but it depend what sort of MPU you will use