in a class of boys and girls vikas ' s rank is 9 th and tanvi ' s rank is 17 th . vikas ' s rank among the boys in that class is 4 th from the top and 18 th from the bottom and tanvi ' s rank among the girls is 8 th from top and 21 st from bottom . in the order of rank , how many girls are there between tanvi and vikas ?
explanation : vikas ' s rank in the class is 9 . so there are 8 people before him . his rank among boys is 4 . so 3 boys are before him . so there are 8 – 3 = 5 girls before him . tanvi ' s rank among the girls is 8 . so there are 7 girls before her . so number of girls between vikas and tanvi is 7 – 5 = 2 answer : c
subtract(subtract(8, const_1), subtract(subtract(9, const_1), subtract(4, const_1)))