Melanie set aside 20 x 3/4 = <<20*3/4=15>>15 brownies from each batch for a bake sale.
So, there are 20 - 15 = <<20-15=5>>5 brownies that are not for bake sale from each batch.
Out of the 5, 5 x 3/5 = <<5*3/5=3>>3 brownies are kept in a container from each batch.
Thus, 5 - 3 = <<5-3=2>>2 brownies are given out from each batch.
Therefore, a total of 2 x 10 = <<2*10=20>>20 brownies are given out from the 10 batches.
#### 20