Two men from Middlesbrough have been jailed for a combined total of five and a half years for their role in dealing class-A drugs.