i cant seem to figure this question out could someone tell me the equations for this question please?

In a marathon race. Tom ran part of the 42km at an average of 10k/h and walked the rest at an average 6km/h. he ran for one hour more then he walked. how long did he take to finish the marathon?

fast responde would be greatful thanks