There is a mountain with 45 bat caves in a row. Every cave has at least 2 bats and there are 490 bats in all. Any 7 caves in a row contains exactly 77 bats. Suppose the first cave has 7 times as many bats as are in the last cave. What is the greatest possible number of bats in the 30th cave?