Solving "mixed-acid" problems by use of determinants.