The Howard County Chili Cook-Off ranks cooks to determine a winner. First place votes get 5 points, second place votes get 4 points, third place votes get 2 points and fourth place votes get 1 point. The winner of the cook-off received 342 points. If Johnny was 31 points behind the winner and he received 40 first place votes, 5 third place votes and 1 fourth place vote, how many second place votes did he get?