Red to r white to w yellow to y y2 green to g blue to common. A wire from existing to g in nest b wire from existing to y1 in nest c wire from. Since you have nest e it does have limited slots for us to work on your wires.