using mass and distance, identify and compare the sun's and moon's contribution to the formation of tides on earth