It is clearly mentioned in the question that each bottle of ibuprofen has 1000 pills.
Now, 1/4 bottle of ibuprofen is used to make the prescription.
So, if one bottle of ibuprofen has 1000 pills and 1/4 1/4 bottle of ibuprofen is used to make the prescription, then Jerome obviously used pills of ibuprofen to make the prescription.