The axial rotation of planets and transfer of mass and angular momentum from a satellite system to its primary