The geometric series a+ar+ar2+⋯ has a sum of 10, and the terms involving odd powers of r have a sum of 4. What is a+r?
4
311
313
27
29