Live and neutral go to any of RST and both earths goes to earth. UVW in any order is fine, so long as the spindle runs in the right direction.