Simon leaves home at 10:30am. He has return home before 6:15pm. He has to travel to work, which takes 45 minutes; he is working a four hour shift. He wants to meet some friends after work. His journey to his friends is 10 minutes and his return journey home is 42 minutes. What is the maximum amount of time he can spend with his friends?