Simplifying radicals and fractions