A company orders a number of bottles from a factory. The 8 machines in the factory could make all the bottles in 5 days. All the machines work at the same rate.For 2 days, only 4 machines are used to make the bottles. From the 3rd day, all 8 machines are used to make the bottles.Work out the total number of days taken to make all the bottles.