Rack A holds 80 pairs of slacks with prices ranging from $12 to $15 a pair, and rack B holds 60 pairs of slacks with prices ranging from $13 to $18 a pair. If all the slacks are sold, what is the greatest amount by which the revenue from the sale of slacks on rack A could possibly exceed the revenue from the sale of slacks on rack B?