74LS259 Latch with Arduino

Yes I know how to drive 7segment by using PORTD pins.But I can't use that. could you please tell me how to use 2 multiplexed seven segment display while segment pins are driven with 74LS259 and cc pins are driven by 74LS138