You know the female can pass on three of its IV's, right?
Well, lets say both parents are flawless. If you give ine parent a power bracer, and the other a power anklet, you will definitely get a pokemon with 31 IV's in speed and attack, right? Well, the fenale also passes an additional 3 IV's, abd if you are lucky, all three of them are diffrent, and you can end up with a pikemkn
Like this:
31/31/31/x/31/31
If you are lucky you can get 31 IV's in 5 stats