2 lines 1 move

Hi community !

Is there a way to stretch or extend a set of connected entities.

In other words, assuming we have two straith lines connected or at their extremites or not.

If i move one of them , the other follow my action .

 

thanks for your help