Hi Wenwen,
This is a binary response case. EDA and modeling can be applied to seek optimal combination for A and B.
Attached is the jmp file. You can run the scripts to see the results.
Since this is an imbalanced dataset with few "Fail" records, modeling with Logistic Regression, Generalized Regression and Random Forest in JMP PRO are not able to achieve good performance for predicting Y now. So I really recommend you combine the results of EDA and the models to narrow your process window. Also, I think confirmation experiments are needed to verify the parameters.

Best,
Joyce Pan