A + B problem