I tried studying a degree in a city that was a 30-40 minute bus journey away from my house and even that didn't work out since the public transport proved too unreliable and it felt like I was very disconnected from the university and the other students. But it depends where your priorities are, if you just want to do the degree and don't care too much about the social side then it will save you a lot of money to live at home. Also with that length of journey, if you choose to do that, you should definitely ensure you can work on the train (if they have wifi and plug sockets), since it's a good chunk out of your working day.