Mate

Is there a way to mate theses so like part e can't slide out until part A is sleed out.