Half the distance from his apartment to work is 10 miles / 2 = <<10/2=5>>5 miles
The gym is 2 more miles than this distance so is 2 + 5 = <<2+5=7>>7 miles away from his apartment
#### 7