The logic of the interaction between beneficence and respect for autonomy