X, Y and Z can do a piece of work in 6 hours. X and Y can do the same work in 8 hours and Y and Z can do the same work in 12 hours. In how many times will X and Z do the same work?