Finding the magnitude with Logs.

I've been stuck on this problem for a long time now. Can someone help me? Thanks in advance :)

http://edugen.wiley.com/edugen/art2/common/pixel.gif

The magnitude of an earthquake is measured relative to the strength of a “standard” earthquake, whose seismic waves are of size *W*0. The magnitude, *M*, of an earthquake with seismic waves of size *W* is defined to be

http://edugen.wiley.com/edugen/share...=1300819127818.The value of *M* is called the Richter scale rating of the strength of an earthquake.

How many times larger are the seismic waves of the earthquake with rating of 5.7 on the *Richter scale*, than the seismic waves of the earthquake with a rating of 3.6 to the nearest integer.