John travels from his home to his office at a speed of 50 kilometers per hour and it takes him 1.5 hours to reach his office. On the way back, due to traffic, his speed reduces to 30 kilometers per hour. How long does it take for John to travel from his office back to his home? Let's think step by step and output the final answer within \boxed{}.
user