Chapter 58 of the Fullmetal Alchemist manga corresponds to Episode 40 of the 2003 anime series.
Critical note: The 2003 anime diverges significantly from the manga after this point (around Episode 26–30), creating an entirely original storyline and ending. Fullmetal Alchemist: Brotherhood (2009) faithfully adapts the complete manga.