The force, FFF, between two magnets is inversely proportional to the square of the distance, x x\,x cm, between them.
F F\,F is given by the formula: F=36x2\displaystyle F = \frac{36}{x^2}F=x236
Find the Force when two magnets are 3 cm apart.