Judge sentences car thieves to prison, rider