(Big ring – granny ring) + (large cassette sprocket – small cassette sprocket) = required capacity.
Capacities are:
SS – Short Cage Road Double – Maximum Cassette Cog is 27 and Total Capacity is 29
GS – Medium Cage MTB/Road Triple – Maximum Cassette Cog is 34(MTB)/27(Road) and Total Capacity is 33(MTB)/37(Road)
SGS – Long MTB – Maximum Cassette Cog is 34 and Total Capacity is 45
For SRAM:
Short – Maximum Cassette Cog is 34(MTB)/28(Road) and Total Capacity is 32(MTB)/31(Road)
Medium – Maximum Cassette Cog is 34 and Total Capacity is 37
Long – Maximum Cassette Cog is 34 and Total Capacity is 45
Taken from Here, but it’s a bit out of date, capacity is greater than stated. An SGS (long) MTB mech should see you right.