There are two options:
for first you can move the "movable" Conduit to the "stationary" one, extend its LoactionCurve in the back (i.e. create a new Conduit, and delete the old one), and then connect their connectors. In my opinion, this method has a number of problems, and the first of them is that the movable Conduit is connected to other Conduits, and some of them will also have to be rebuilt. Of course, you can first move the movable Conduit using Transform.CreateTranslation(), complete the transaction inside the algorithm, then immediately start it, then, if this does not cause problems for Revit itself, it will move the required Countit to the stationary Conduit, and along with it it will rebuild the other Conduits connected to the movable Conduit. But I guarantee you that a regular situation will occur in which, with such movements, the error "lack of required space for fitting placement" and the like will occur, so this option should not be considered for implementation.
The second option would be to calculate the required Lines (most likely three pieces, like how the length of a cable line in electrical circuits is calculated), and then build several Conduits on these Lines required to connect the movable and stationary Conduits, although in this case they will both be stationary