We have the following information:
We have that each lock lowered the barge 25 feet.
Then, because the amount that the barge lowers the canal is constant (it is the same), we can calculate the number of locks as follows:
Then, the number of locks is 5 (this is the answer).
We can check this result as follows:
In the first lock, the barge lowers 25 feet, in the second, another 25 feet, in the third, 25 feet, and so on. It happens 5 times. Then, the total is 5 * 25 = 125 feet. If we subtract this value from 767 feet, we finally obtain the elevation of the barge at the Town of Barrage (642 feet). That is: