Manish is 18th from the right end.
Rahul is 5th from the left end.
There are 7 boys between Manish and Rahul.
Since Rahul is 5th from the left and there are 7 boys between Rahul and Manish, Manish's position from the left is:
Position of Manish from left =5+7+1
Position of Manish from left =13
Manish is 13th from the left and 18th from the right.
Total number of boys =Position from left+Position from right−1
Total number of boys =13+18−1
Total number of boys =30
Verification:
- Total boys = 30
- Rahul: 5th from left
- Manish: 18th from right = (30−18+1)=13th from left
- Boys between them = 13−5−1=7 ✓
Therefore, there are 30 boys in the row.