In a weekly golf tournament, Perry, Dana, Charlie, and Phil keep track of their wins. At the end of the season, Perry had won five more games than Dana, while Charlie had won 2 games fewer than Dana. Phil had won 3 games more than Charlie. If Phil won a total of 12 games, how many more games did Perry win than Dana? Let's think step by step and output the final answer within \boxed{}.
user