machines x and y produce bottles at their respective constant rates . machine x produces k bottles in 6 hours and machine y produces k bottles in 12 hours . how many hours does it take machines x and y , working simultaneously , to produce 24 k bottles ?