Converting both terms into simpler terms by dividing them by common factor
den3 = parseInt ( den3 / common_factor ) ; num3 = parseInt ( num3 / common_factor ) ; document . write ( ` ${ num3 } ${ den3 } ` ) }