Alice burned 320 calories at the gym. She burned 6 calories per minute on the treadmill and 10 calories per minute on the elliptical. Alice exercised for 45 minutes in all. How many minutes did she spend on the treadmill?