as you know, I do not have a good English, so here I help you with pictures to explain better.
the engine is a ej20g 1994.. the wiring is a 1995 ej20g wrx...
This is the camshaft sensor plug:

and this is the plug wiring:

This is the crankshaft sensor plug:

and this is the plug wiring:

my question is, as I do? You can join cables?
excuse my English, because it is bad.
if there is someone who speaks Spanish and can help me it would be good.
many thanks friends !!