Representation ring of Levi subgroups versus cohomology ring of flag varieties