An electric filter purifies air at the rate of 35 liters per minute and uses energy at the rate of 0.8 Joules per minute. It also purifies water at the rate of 25 liters per minute and uses energy at the rate of 1.3 Joules per minute. The filter is expected to purify more than 1000 liters of air and water while using less than 170 Joules of energy. Let A denote the number of minutes it spends purifying air and W the number of minutes it spends purifying water.