Dewsbury drugs criminals who supplied more than £500,000 of heroin and cocaine have been given a combined sentence in excess of 37 years.