Free variables and the two-matrix model