Working simultaneously and independently at an identical constant rate, 4 machines of a certain type can produce a total of x units of product P in 6 days. How many of these machines, working simultaneously and independently at this constant rate, can produce a total of 3x units of product P in 4 days?