Amount the sponsor committed to give flat for participation in the walk-a-thon is $5.
This means that this amount is a constant.
Now for every mile amount that can be won is $2.
Now for x miles the amount that can be won is two times x = 2x dollars.
So let us make an equation for this question.
Total amount A is given by:

x is number of miles.
In our question we have to find amount won in case of 20 miles.
So plugging x as 20 in the equation,

Amount = 45 dollars.
Answer: The total amount that I will collect at the end of walk-a-thonfrom the sponsor is $45.