PLEASE HELP ME WITH THIS QUESTION!!

Alex gets to work by biking to the train station, riding the train, then walking. His entire trip to work is 12 miles. If he bikes 1/2 of the way and walks 1/6 of the way, how many miles did he travel on the train?