You roll two dice, and get the results X and Y, where X >= Y. You re-roll Y and get Z. If Z is greater than X, you use Z, otherwise you use X.
You roll three dice, and get X, Y, and Z, where X >= Y. If Z is greater than X, you use Z, otherwise you use X.
Assuming that's what you are saying (I...