Euclid preparation. Improving cosmological constraints using a new multi-tracer method with the spectroscopic and photometric samples — arXiv2