What Skwidd said.
Here's a cut and paste from the AMA rule book
6. Points awarded per moto are 1 point for first, 2 points for second, 3 points for third, etc. The rider accumulating the fewest points after both motos is the overall class winner. In case of a tie, the winner is the rider with the better finishing position in the final moto