A light ray enters a rectangular glass slab (n = 1.5) at point A at an incident angle theta and then undergoes total internal reflection at point B at the interface between the glass and an unknown liquid. If the maximum incident angle theta for this to occur is 30, what is the index of refraction of the unknown liquid?