If the squares of two numbers are not equal, then the numbers are not equal
If the squares of two numbers are equal, then the numbers are equal
If the squares of two numbers are equal, then the numbers are not equal.
If the squares of two numbers are not equal, then the numbers are equal
Given contrapositive of p→q is ¬q→¬p
p → a ≠ b
q → a² ≠ b²
¬q → a² = b²
¬p → a = b
Therefore, Contrapositive a² = b² → a = b.