可以用两个句型
it takes sb st to do sth 或者 spend st doing sth
例如:去图书馆花了我40分钟
it takes me 40 minutes to go to the library by bus.
i spend 40 minutes going to the library by bus.
Where to spend 40 minutes by bus
it takes me 40 minutes to *** by bus
Where does it take you 40 minutes to by bus?