Converting fractions to decimals and solving equations