Machine A produces pencils at a constant rate of 9,000 pencils per hour, and machine B produces pencils at a constant rate of 7,000 pencils per hour.If the two machines together must produce 100,000 pencils and if each machine can operate for at most 8 hours, what is the least amount of time, in hours, that machine B must operate?