The areas of drainage basins A and B are 25 km2 and 50 km2, respectively. The total length of drainages of all orders in basin A is 20 km. If both the basins have the same drainage density, the total length of drainages of all orders in basin B in km is____ (in integer).