Hi Dave,
You have the backgrounds correct. O1-O17 have small dots in the background. O18-O27 have vertical lines.
For the last two, you need to look at the type of paper. Most likely the stamp on the right is granite paper. Note the small flecks:

That would make it an O40. (It can be perf 13 x 12.5 or perf 14- two variations.)
There are also reprints of these issues that need very detailed scans to distinguish. (You have to count the pixels on the top circle. LOL)
Hope that helps!
Dan
