Thomas and his friends took 1/4*200 = <<1/4*200=50>>50 bars.
The total number of bars left in the box was 200-50 = <<200-50=150>>150 bars.
Since there are five of them sharing, each of them got 50/5 = <<50/5=10>>10 bars.
After a friend returned 5 bars, there were 150 + 5 = <<150+5=155>>155 bars in the box.
Piper took five fewer bars, that is 50 - 5 = <<50-5=45>>45 bars.
The total remaining bars left in the box is 155 - 45 = <<155-45=110>>110 bars.
#### 110