Google has signed an agreement to sell Motorola to Lenovo for $2.91 billion, the company announced after markets closed on Wednesday. Google will keep the "vast majority" of around 10,000 patents it acquired when it bought Motorola in 2012 for $12.5 billion.