Two math teachers come together and write math problems about fruit vendors. If Teacher A can write 50 problems in 60 minutes and Teacher B can write 50 problems in 80 minutes, how long would it take them to write 50 problems if they worked together?