Look at the plastic rings. Both of them have a small hole/notch next to
the head rest shaft. You need to push a small diameter rod into both holes.
Push down on the rods while lifting up on the head rest (A third hand would
be great here). If you can't find any such tool, a couple of small diameter
allen wrenches, may do the trick.