Solving Proportions: Example 38. Determine the conditions for two right triangles to be similar, when side lengths are expressed as numbers and variables.