The 5 is correctly distributed so that it is used to multiply the 10 and the 12 separately.