Solving equations involving fractions or decimals