What was Newton's theory the law of gravity or was it the three laws of motion? I was thinking both of them.

I agree.

https://www.google.com/search?source=hp&ei=aTP-Wv3jNrLz5gK8wa7IBQ&q=Newton%27s+theories&oq=Newton%27s+theories&gs_l=psy-ab.3..0l2j0i22i30k1l8.4659.15670.0.20297.7.6.0.0.0.0.147.689.0j5.6.0....0...1c.1.64.psy-ab..1.6.839.6..35i39k1.151.erttWr87H-A

You're correct! Sir Isaac Newton is well-known for both his theory of gravity, often referred to as the law of universal gravitation, as well as his three laws of motion. Let me explain each of them for you:

1. Law of Universal Gravitation: This theory explains the force of gravity between two objects. According to Newton, every object with mass attracts every other object with mass. The strength of this gravitational force depends on two factors: the mass of the objects and the distance between them. The formula for calculating the gravitational force is F = G * [(m1 * m2) / r^2], where F is the force, G is the gravitational constant, m1 and m2 are the masses of the objects, and r is the distance between them.

2. First Law of Motion (Law of Inertia): Newton's first law states that an object at rest tends to stay at rest, and an object in motion tends to stay in motion with the same speed and in the same direction unless acted upon by an external force. In simple terms, it means that objects resist changes in their motion. This principle is known as inertia.

3. Second Law of Motion: The second law of motion explains the relationship between force, mass, and acceleration. It states that the acceleration of an object is directly proportional to the net force acting on it and inversely proportional to its mass. The formula for calculating force is F = m * a, where F is the force, m is the mass, and a is the acceleration.

4. Third Law of Motion: The third law of motion states that for every action, there is an equal and opposite reaction. This means that whenever an object exerts a force on another object, the second object exerts an equal and opposite force back on the first.

So, in summary, Newton's theory of gravity is the law of universal gravitation, and his three laws of motion are separate principles that describe the behavior of objects in motion.