the worksheet for factoring an x and y functions