With and for - WITH the beneficiary (also among or in the eyes of), FOR (also by) <thing-done>: He got brownie points with his parents for cutting the grass.
You can also 'get into somebody's good books' by doing something, or just 'suck up to them'. Depending on the context, you may become 'teacher's pet' - in the eyes of people who resent the good impression you're making. (This one doesn't work only in school; sucking up to your boss may qualify you for 'teacher's pet' status!)
b





