Optimal Synthesis of the Joint Unitary Evolutions