The board purchased was 3M long and she needed to cut shelves from it were each 40cm long. How many shelves could she cut from the board? After cutting all of the shelves that she could, how much of the board was left over?