Production of light olefin (ethylene and propylene) in refinery