How to connect the wires depends on the available input voltage, and the desired output voltage. The 4 wires on primary and secondary are actually 2 separate windings on each side of the transformer, which are connected in series or parallel as required by the specific installation.