Question: why does ririka follow mary?
Answer: If she gets it right, she can keep the votes. If she gets it wrong, she has to join Ririka in the presidential battle. And even if she wins, Ririka would simply follow Mary around. Mary was against it and wanted to leave until she heard about Yumeko Jabami being poisoned.