Reema bought pencils for school in August. She gave

1 / 2

of them to her friends. She used

3/4 of what she had left the first month of school. She now had 3 pencils left

How many pencils did she buy in August?