A train A travelled a distance of 120km in 3 hours whereas another train B travelled a distance of 180km in 4 hours. Which train travelled faster?