Let the total number of students in the row be \( N \).
We are given the following information:
- Amrit is at the 19th position from the left.
- Rahul is 8th to the left of Amrit, so Rahul is at the \( 19 - 8 = 11 \) position from the left.
- Dhaval is 6th to the left of Rahul, so Dhaval is at the \( 11 - 6 = 5 \) position from the left.
- Dhaval is also 12th from the right, so:
\[
N - 12 + 1 = 5 \quad \Rightarrow \quad N = 28
\]
Step 5: Conclusion.
The total number of students in the row is \( \boxed{28} \).