The firewood is made from 500 pieces of firewood / 5 pieces of firewood per log = <<500/5=100>>100 logs.
So the logs are chopped from 100 logs / 4 logs per tree = <<100/4=25>>25 trees.
#### 25