How long does weed stay in your system?

Had 2 tokes of weed 6months ago. If i get tested will it be detected? And what test would pick it up?