On rings that are sums of two subrings