number of days he ran 5 miles --- x
number of days he rans 7 miles --- 30-x
5x + 7(30-x) = 166
solve for x , then sub in the original definitions
How many days did he run 5 miles?
How many days did he run 7 miles?
number of days he rans 7 miles --- 30-x
5x + 7(30-x) = 166
solve for x , then sub in the original definitions
Let's assume Jun-Jee ran 5 miles for "x" days, and 7 miles for "y" days.
Based on the given information, we know that Jun-Jee ran 30 consecutive days, so we can write the first equation:
x + y = 30
We also know that the total mileage during this period was 166, so we can set up the second equation:
5x + 7y = 166
Now, we have a system of equations:
x + y = 30
5x + 7y = 166
We can use various methods to solve this system of equations. One method is substitution:
Let's solve the first equation for x and substitute it into the second equation:
x = 30 - y
Substituting x = 30 - y into the second equation:
5(30 - y) + 7y = 166
150 - 5y + 7y = 166
2y = 16
y = 8
Now, we know that Jun-Jee ran 7 miles for 8 days.
Substituting y = 8 back into the equation x + y = 30:
x + 8 = 30
x = 22
Therefore, Jun-Jee ran 5 miles for 22 days and 7 miles for 8 days.