Take bus No.33 directly from Nanjing Station and get off at Xuanwu Lake Park, where you can browse the beautiful scenery of Xuanwu Lake. After the tour, take bus No.33 and get off at Changle Road Station, which is diagonally opposite the Confucius Temple. After the tour, you can also come out from the original gate, take bus No.44 to Taipingmen Station at the platform where you get off, and then transfer to bus No.20 to the Zijinshan cableway. After the tour, take bus No.3 at the bus stop and get off at Sun Yat-sen Mausoleum Station, so that you can get everything.
If you want to stay, I suggest you go near the Confucius Temple. There are many places to live here. If you can, you can buy accommodation online. If you can't find it, go directly to Changle Road, Confucius Temple. There are many hotels here, and the prices are ok!