Use Arduino Uno as multiplexer latched output

Andy2778:
Hi all, I am new to Arduino.
And I wish to use Arduino to carry out 4 to 16 MUX with latched function.
My objective is to ON/OFF some valve with relay which all the control need to ON/OFF independently.

Sounds to me like an addressable latch.