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