How to sovle the multiplying algebraic expression?