Solving numerical expressions with fractions