a boat m leaves shore a and at the same time boat b leaves shore b . they move across the river . they met at 500 yards away from a and after that they met 300 yards away from shore b without halting at shores . find the distance between the shore a & b