5=log(1000+Q) calculate Q?
Apply the definition of the logarithm: If then For this problem you have (assuming the log is base 10): so I'm sure you can take it from here.