how to x factor math