R and S of the sides AB