If you slip the crank arms on the axle, rotate them and peer through the cotter pin hole, you'll see the axle flats line up with the hole and it becomes evident that the cotter's bevelled face will mate with the axle flat. You should review
Sheldons page and look up a video before attempting for the first time.