Solves simple expressions