There are some tabletops with this dice trick and I have not been able to find or translate this to math.
For example in DnD there is Advantage that means throwing a 20 sided dice choosing the best (higher) result.
In CoD some dice tricks allow you to for example throw 10, 10 sided dice with any number matching 8 or above being considered a success. Normally I can expect 3 successes. If I throw the same number of dice twice choosing the best result. How many successes can I expect to have? What probability distributions should I use? I think have not been able to apply them correctly in this case.

Edit: As amd points out, this answer may have misinterpreted what the OP has in mind. I'll leave it posted as is for now. end edit
If you roll a $10$-sided die twice, the probability of "failure" on both rolls is $(7/10)^2=0.49$, so the probability of "success" for that die is $0.51$. The expected number of successes when rolling ten dice twice each is thus $10\times0.51=5.1$.
Another way to arrive at the answer is to imagine rolling all $10$ dice, then rerolling only the ones that aren't successes. On average you'll have $10\times(3/10)=3$ successes with the first set, leaving, on average, $7$ dice to be rerolled, which will, on average, produce $7\times(3/10)=2.1$ successes, for a total average of $3+2.1=5.1$ successes.