Question 2: Solving for Side Lengths of Right…