you can use something called crossed multiplication (not sure the official name but something like that) basically when you have 2 fractions that equal to each other, you can multiply the numerator on the left-hand side with the denominator on the friction on the right side. and repeat the same with the numerator on the right side and multiply it by the denominator on the left. that way, there will be no more fractions and will just leave you simple algebraic equations.
so in here
