How to multiply product in lowest terms