Two proofreading programs, A and B, discovered 30 and 40 errors, respectively. There are 10 errors in common. Estimate the number of errors that are still undetected.