Indices and intersections

Suppose A and B are subgroups of a group G, and suppose B is of finite index in G.
(a) Show that the index of A∩B≤A is finite, and in fact |A:A∩B|≤|G:B|. Hint: Find a set map A/A∩B→G/B.
(b) Prove that equality holds in (a) if and only if G=AB.