solution to multiply