multiplying algebraic fractions