From subnettingquestions.com
Q: Question: How many subnets and hosts per subnet can you get from the network 172.29.0.0/25?
A: Answer: 512 subnets and 126 hosts
If you convert the following to binary:
255.255.0.0 11111111.11111111.00000000.00000000
255.255.255.128 11111111.11111111.11111111.10000000
It is my understanding that you take the bits where they don't match up from the default subnet mask and the prefix notation and use that to get the subnets and then to get the hosts, you subtract 2 (because of the network and broadcast address).
2^9 = 512 for subnets
512 - 2 for the hosts = 510
I have no clue how they are getting 126 for host.