The two winning lottery tickets that will share in a Mega Millions $335 million pot were sold in Idaho and Washington state, lottery officials said Wednesday.