solve srm