Total = (position from one end) + (position from the other end) - 1. Position from the other end = Total - position + 1.

— Formula to remember

Key takeaways: total = from-one-end + from-other-end - 1; and the number below someone is the total minus their rank from the top.