A warehouse has a stock of 500 gallons of paint. If 10 gallons of paint are used each day, how many days will the paint last? If the warehouse needs the paint to last at least 100 days, what is the maximum number of gallons that can be used per day? Let's think step by step and output the final answer within \boxed{}.
user