Let R be a ring and A be a subring of R. When is the set of cosets {r+A | r in R} a ring under the operations (s+A) + (t+A) = s+t+A and (s+A)(t+A) = st + A?