Point A has more gravitational potential because that energy is the energy stored in an object in this case the pencil and it is in a vertical position and it is off the ground cause it to have height. And the energy in the picture changed because the pencil will soon drop to the ground