Dashed line MN and PQ are incident wave front. Just before entering the slab PQ is maxima. P1 and Q1 are the points on other face of slab. So, P1 will be at lead of n2 d w.r.t. P And Q′ will be at lead of n1d w.r.t. Q Right of the medium is homogeneous So to have same path lead as P1⋅Q′ must travel to Q1, so n2d=n1d+hsinθ