Instead of explicitly selecting both axes, you
can select the axis of the red component and then drop it onto the blue inner
cylinder face when your cursor points to this face.
Possible constraint
between the axes is detected.
As the Automatic constraint creation option is selected, a coincidence constraint is created between both axes.