if its the main line in you only need 2 cores. ususally both of the same colour. connect these to A and B or 1 and 2 (if only marked 1 or 2), or 2 and 5. doesnt really matter which way round. hopefully by damage to the end cores youll be able to tell which pair have been ripped from the terminals