From SRD 5.2.1
Advantage
If you have Advantage on a D20 Test, roll two d20s, and use the higher roll. A roll can't be affected by more than one Advantage, and Advantage and Disadvantage on the same roll cancel each other. See also chapter 1 ("D20 Tests").