
Let $\theta_\text{c}$ be the critical angle for the glass $\frac{\sin\theta_{\text{c}}}{\sin90^{\circ}}=\frac{1}{\text{x}}\Rightarrow\sin\theta_{\text{c}}=\frac{1}{1.5}=\frac{2}{3}\Rightarrow\theta_{\text{c}}=\sin^{-1}\Big(\frac{2}{3}\Big)$
From figure, for total internal reflection, $90^{\circ}-\phi>\theta_{\text{c}}$$\Rightarrow\phi<90^{\circ}-\theta_{\text{c}}\Rightarrow\phi<\cos^{-1}\Big(\frac{2}{3}\Big)$
So, the largest angle for which light is totally reflected at the surface is $\cos^{-1}\Big(\frac{2}{3}\Big).$




Refractive index of glass
Since, paraxial rays become parallel after refraction i.e. image is formed at