It will be good to use in the Solve block (Mathcad Prime) or in the Given-Find block (Mathcad not Prime) the if function (key word?):