Let's represent the total distance that Mira plans to run with "x".
According to the problem, 2 miles is 40% of the total distance, so we can write:
2 = 0.4x
To find the value of "x", we need to isolate it on one side of the equation. We can do this by dividing both sides of the equation by 0.4:
2 ÷ 0.4 = x
Simplifying the left side gives us:
5 = x
Therefore, Mira plans to run a total of 5 miles.