You can take metro lines 1, 2, and 3.
The tour ends by the entrance of the Prado Museum, on the Paseo del Prado. The closest metro stations are Antón Martín / Estación de Arte (line 1). All commuter trains stop in Atocha train station, close to the Museum.