A and B started swimming at the same time from deep end and shallow end of the pool respectively. They met form the first time 70 m from the deep end. they continued swimming and reached shallow end and deep end respectively. Each tool a rest of 1 minute and then started swimming towards deep end and shallow end respectively. This time they met 50 m from the shallow end. What is the length of the pool?