If each shelf has 400 books, then the four shelves have 4*400 = 1600 books.
Since the total number of books on the shelves is the same as the distance that Karen bikes back home, biking to and from the library takes 1600+1600 = <<1600+1600=3200>>3200 miles
#### 3200