Number of students after Anu in rank = 31 - 7 = 24
So Anu is 25th25th from the bottom
So number of students after Vinay in rank = 31 - 11 = 20
So Vinay is 21st from the bottom
This question can be solved by following formula also :
Rank of a person from lower or right end = Total number of persons in row - Rank of that person from upper or left end + 1
Anu's rank from the bottom = 31 - 7 + 1 = 25.