Question 2: Solving Logarithmic Equations using…