Benjamin rode tghe train for 45 minutes. Then it took him another 30 minutes to walk to his friend's house. How many hours did he spend riding and walking to his friend's house?