It had a gravitational force that acts so that it pulls Earth in an orbital, which explains temperature variations throughout the years.
Classically, gravitational attraction is due to the masses of objects. It is inversely proportional to the square of the distances between the objects.
Magnetic attraction is due to the magnetism in objects which is due to uncompensated electron spins in certain atoms. The force due to magnetism less easy to put into one equation than gravity since magnetic fields can have different shapes, but the simplest one (the dipolar field) is inversely proportional to the cube of the distance between the magnetic dipoles.
He worked with Euler on elasticity and the development of the Euler-Bernoulli beam equation.
A. is the answer for this