Need assistance.

Why do we say "If I were you, I would have...

Why don't we say "If I was you, I would have...

Please explain this rule. Your help is very much appreciated.