Learn every valve combination on the horn. Press the valves you'd use for the target note.
Three valves give seven combinations (open, 2, 1, 1-2, 2-3, 1-3 and 1-2-3), each lowering the pitch a little more. With your lips you choose which note of that fingering’s series sounds, so the same fingering plays several notes.
A B♭ trumpet sounds a whole step lower than written: a written C sounds as a concert B♭. Trumpet music is written in its own key, and the toggle lets you see both.
Say the note name and finger it on your valves (or the table) as you answer. Short daily rounds build the fingerings into muscle memory.