x/150 + (x + 270)/190 = 5 --> x = 300
300/150 = 2 minutes in hungarian
(300 + 270)/190 = 3 minutes in polish