Most D&D / Pathfinder gamers typically use three dice for each check. So if two matching results show up, then it's usually treated as an automatic success unless otherwise stated by the Game Master. However, some groups prefer to roll the dice again. They do this when they have doubled. It is good to roll the dice when you have doubles or triplets.