In this question , it is given that Joyce average speed from library to gym was 15 miles per hour less than her average speed from her house to the library .
And x represents the average speed from her house to the library . And since from library to gym, speed was 15 miles per hour less, so the speed from library to gym was = x-15
THerefore the correct option is the last option .