Mr. smith baked 3 trays of 36 cookies. After they cooled he divided the cookies evenly into 4 bags. How many cookies did mr. smith place in each bag?