You will probably only need the red and green wires. The yellow and black are usually spares, or used for a second line. Simply connect the red to the other reds, and green to the other greens. If that doesn’t work, then describe the interface where all the other phones are connected (including wire colors), and I’ll try to help further.
Andy