Usually Pokemon characteristics are determined by the highest IV. But you seem to have a tie, so:
>Start with the Pokémon's personality value mod 6. The result is an index number of a stat in this order: HP, Attack, Defense, Speed, Special Attack, Special Defense. In the event of a tie in IVs, the first IV checked is the IV corresponding to that index number. If that IV is not part of the tie, the game moves on to the next index number in the aforementioned order. If it goes past 5 (Special Defense), it wraps around back to 0 (HP). When the game finds an IV that is part of the tie, that is the IV that will determine the characteristic displayed. -Bulbepedia
IHope this Helped :D