Solving for a specific term