hey varun,
i solved this using ur equations but i am not getting the answer.
once u try urself,,,,
i didnot understand the first equation f+T=MA,
becos for the right disc which is rotating with an angular velocity w , the friction acts in the forward direction(i.e, rightward) and the tension is acting along the string (leftward)......and hence the equation comes to be
f - T= MA