Ho studiato tanta matematica quanto loro, ma alla fine lavoro in fabbrica.

[così / tanto] + sostantivo + (quanto / come)
This structure is a COMPARATIVE that compares 2 elements. For example I can say, 'In questa pasta c'è tanto olio quanto sugo'. In this example the terms of comparison are 1) la quantità di olio and 2) la quantità di sugo. The object of comparison is a noun 3) la pasta. In this case the comparative is of equality (tanto / quanto).