Pathways to discovery in astronomy and astrophysics for the 2020s