> 
> Let R be an integral domain and $a,b\in R$ are elements satisfying $a^7=b^7$ and $a^{12} = b^{12}$. Prove that $a=b$.
> 
> 
> 

My attempt:-
 Since $R$ is an integral domain, R is commutative. That is all I could conclude...could you please help me out?