71 model year engine. The "G" in that string tells you model year. yes the "P" is premium fuel.
3587 = May 24 1971 so it's a later in the year 1971 model, probably real close to end of 1971 production .
There should be numbers on the pass side pan rail, close to a drain plug. Should have the year digit, factory and last 6 of vin to help tell you.