Bayesian distances and extinctions for giants observed by Kepler and APOGEE — arXiv2