Check the river. He thinks he's got the best hand with his raise, so you'll get something when he bets it. If you check raise to 40, he might call that as well