In this problem 40 miles correspound to the 100%, so we can use a rule of 3 to calculate how many miles correspound to 25% and then we rest that from the total.
so the rule of three will be:

and the equation will be:

So the second week Matt ran:

Matt ran 30 miles