Myles went to the store, which is ⅔ miles away. When he was halfway back, he caught the bus. If he rode the bus on the whole way back from the store, how many miles did he ride on the bus?