Two men from Blackburn and Darwen have been sentenced over the production and supply of cannabis.