Dear Student
The condition for minimum deviation through a prism is that angle of incidence (i) is equal to angle of emergence ( e). In that case, the refracted ray becomes parallel to the base of the prism.
So applying condition of minimum deviation
Regards