Cornhole scoring: how does it work?

Cornhole scoring: how does it work?