A red ant is sitting on one side of the table(point X) and a black ant is sitting on the other side of the table(point Y). They decide on switching places and start walking towards each other in a straight line. On the way both ants meet and after that it takes 20 seconds for the red ant to move to point Y and 5 seconds for the black ant to move to point X . Find the total time taken by the red ant and the black ant individually to make their journey.