Find the smallest number which leaves remainders 8 and 12 when divided by 28 and 32, respectively.