A group of juniors and seniors took a test. Exactly $\frac{3}{5}$ of the juniors and exactly $\frac{6}{7}$ of the seniors passed the test. If the number of juniors who passed the test was $\frac{2}{3}$ of the number of seniors who passed the test, what fraction of the entire group passed the test? Express your answer as a common fraction.