p - numărul pasagerilor;
r - numărul rândurilor.
[tex]\it p=5r+23\ \ \ \ (1)\\ \\ p+1=6(r-1) \Rightarrow p=6r-7\ \ \ \ \ \ (2)\\ \\ (1),\ (2) \Rightarrow 6r-7=5r+23 \Rightarrow 6r-5r=23+7 \Rightarrow r=30\ \ \ \ \ (3)\\ \\ (1),\ (2) \Rightarrow p= 5\cdot30+23=173[/tex]