Hopefully i can help.
Just to confirm. Is this the removal of hinge pins you need to replace?
So it will be the these as arrowed in the diagram below.from the lid??
If you have the new ones there already then you'll notice they will be simply clipped into the lid.via the tab..the best way really would be to open the lid fully so it points to the floor or remove if required and grab/pull the hinges back towards the the top part of the lid and that should just free the tab pop the hinge out.and then its a case lining up the small square tab & just clipping in the new one..or via the picture below.try seeing if you can get a flat blade screwdriver in the direction of arrow to help prise it up..