Playing tennis burns energy at a rate of about 25 kJ/min. Cycling burns energy at about 35kJ/min. Hans exercised by playing tennis and then cycling. He exercised for 50 min altogether and used a total of 1450kJ of energy. For how long did he play tennis?