Let x and y be elements of a group G and m and n coprime positive integers. Show that if x^m = y^m and x^n = y^n then x=y

Let x and y be elements of a group G of orders m and n respectively. Show that if x and y commute and m and n are coprime, then order(xy) = mn

not sure at all on this

many thanks