solving rational expressions