need help jailbraking a 3g

so ive been out of the jailbraking game for a while now, and my gf just got a free 3G from a friend. she has tmobile so i need to unlock it. whats the best way to do it nowadays?