A takes 2 hours more than B to walk d km, but if A doubles his speed, then he can make it in 1 hour less than B. How much time does B require for walking d km?