If machine A polishes x units in 12 minutes and machine B polishes 5x units in 40 minutes, in how many minutes will A and B. working together, polish 50x units?