It was asked a while ago how to make equation use the same counter as a theorem for example and one solution was to make the theorem counter use the equation instead by using
\newtheorem{thm}[equation]{Theorem}
Now what if I also want figures to follow the same pattern? Figures use the counter figure and theorem can’t have two counters.