Any position where query and subject have the same residue is an identity. Notice that the middle line between them will have the same residue. If you count the number of letters on the middle line, you will see that there are 15 of them. That is why the percent of identity is 38% (15/39, where 39 is total alignment length). Any time the residues are similar but not identical there will be a + sign on the middle line, which is for similar matches. The number of positives is (identical+similar / total length) which ends up being 66%. Finally, for mismatches there is an empty space on the middle line.
I think your question titles should be short and informative, and then you put the actual question into the message body.