You punish the first offence in this example, so nothing new. Costa pushed Paredes to the ground, so there is the foul, for which the free kick was given. Seeing as the player made a meal of it and was attempting to influence the referee, he was rightly cautioned for UB, but the referee cannot...