Finding the endpoints of the side opposite