Zend certified PHP/Magento developer

How would I estimate the quantity of two different items when I know the weight of them separately and together on Excel?

So if I know Ax + By = Z and I know the value of A,B and Z. What is the best method of estimating what the value of x and y is on excel?

Thank you!