both are true
∀ a,b ∈ x,,, if f(a)=f(b) ⇒ a=b
and its contrapositive is
∀ a,b ∈ x,,, if a ≠ b ⇒ f(a) ≠ f(b)
and u know direct and contrapositive are equivalent (ie. A⇒B ⇔ ! B ⇒ ! A)
and inverse and converse are equivalent
also u can think for 1st one
for ONE-ONE whenever a ≠ b then f(a) and f(b) also be different(if (a) and f(b) are same then it will be many - one)