Answer: There are 5 red pencils, 16 blue pencils and 23 brown pencils.
Explanation:
Since we have given that
Number of red pencils = 5
Number of blue pencils are 11 more than red pencils.
So, Number of blue pencils would be

Number of brown pencils are 7 more than blue pencils.
So, number of brown pencils would be

Hence, there are 5 red pencils, 16 blue pencils and 23 brown pencils.