[tex]\begin{gathered} \text{Let's assume x berries owens by the sergio,} \\ \text{The berries are divided into three people and each one get 9 berries.} \\ \text{So, }\frac{x}{3}=9 \\ x=27 \\ \text{The total number of berries is 27.} \end{gathered}[/tex]