First find how many dogs are adopted out: 80 dogs * 40% = <<80*40*.01=32>>32 dogs
Then subtract the number of dogs adopted out from the total number of dogs and add the number who were returned to find the final number of dogs: 80 dogs - 32 dogs + 5 dogs = <<80-32+5=53>>53 dogs
#### 53