I need to learn what buildings P and Z get and know what units that means i should get as T.
Zerg
Spire - Thors/marines as primary. have Hellions as backup because they will have a lot of lings in the mix too.
Baneling Nest - Early game, dont pump many Marines. if you have 2 depots in your wall, get some marauders and block your ramp with them. Then just tech up to standard mech. Late game, you shouldn't have much problem, banelings do nothing to mech units really.
Roach Warren - Marauders rip through these guys with great ease!
Hydras - go for heavy marines with upgrades, and mix in a few tanks.
Nydus - Get 2-3 marines patrolling in key areas of your bases.
Protoss
Robo - means their going immortals, go slightly more Marine heavy as they tear up Marauders - Ghosts EMP is amazing against them.
Stargate - they will no doubt be getting Void rays, counter with Vikings and Marauders, as they will be quite heavy on zealots with gas being used on VR.
again.. Ghost EMP
Archives - go for Ghost EMP, target templars ASAP. and micro well with all your units
Main thing to remember is don't go too heavy on mech, most protoss units will rip them up, so its more bio you want. MMM ball is quite standard with Ghosts EMP.