Tag mathematical puzzle solving