They will both receive the EVs. Also, you might want to try to knock your stronger pokemon out at the same time you faint that wailord, with explosion or recoil or something, to get the most exp. You only get one shot at that huge gain level 1 pokemon get, might as well make the most of it.