Thanks! I verified carts 4 and 5. Pin #1 is at the top, then emulation matches the answers. So, your equations were in reverse but otherwise ok.

Sean, could you upload the script to make cheat sheets?