solving s