Machine X makes 300 boxes in 3 mins and machine Y makes 300 boxes in 2 mins. With both machines working, how long will it take to make 300 boxes?