A custom paint mixes 5 parts of blue with 3 parts of red to make purple. How many quarts of red are needed, if 7 quarts of blue are used?