Solving equations involving fractions and negative numbers