In order to calculate the difference of the two earthquakes, we use the formula below:

where x is the difference in the intensity of the earthquakes in terms of Earthquake A and M are the magnitudes of each earthquake.
Ma = 3.0, Mb = 1.5
Let's plug these values into the formula above and solve.

a. Subtract the two magnitudes. The new equation will be:

b. Convert the logarithmic function into an exponential function.

c. Apply the exponent to its base 10.

Therefore, Earthquake A is 32 times stronger than Earthquake B.