An elementary approach to the Diophantine equation axm + byn = zr using center of mass