Company A tested its widgets and found that when they tested 10000 of them, 2010 of them failed. They tested the widgets of their competition but could only test 2000 and found that only 30 failed. How many widgets out of 10000 will Company A have to improve to reach company B's level with 95% confidence?

How would you solve this problem?