Given that:
- Nola rode her bike a total distance of 5 miles from home to the library and then to the gym.
- The distance from her house to the library is 3 miles.
Let be "d" the distance (in miles) from the library to the gym.
Knowing the data provided in the exercise, you can set up the following equation to represent the situation:

Solving for "d", you get:

Hence, the answer is:
