how to solve for a variable in a given equation