What's the problem, you're practically there! If then (multiplying out the fractions) . Multiply out the brackets, cancel the term on both sides, and rearrange to get , or in other words .

In fact, the question asked for the converse result: If then the triangles are similar. But your argument is reversible, so you have proved that result too.