You can put this solution on YOUR website! I think you can use a proportion for this.
So since there are 60 minutes in an hour, you will use this to create your proportion
it would look like
Reminder:(12 is in here because of Sonia riding at an average of 12 miles per hour or 60 minutes) (Because the website doesn't really show fractions it should be 12/60=x/40) (/ is the division sign or fraction sign)
12 x (these are the miles)
--- = ----
60 40 (This is the number of minutes)
Then you cross multiply. 60x=480
Then you get x by itself by dividing by 60 to both sides
60x 480
---- = -----
60 60
X=8
Since x represents the number of miles in 40 minutes and x=8, then that means that the number of miles Sonia rode in 40 minutes is 8 miles
I hope this helped ;)