First do 300 over 400 and you will get 1/4. That means he used 1/4 less of his ingredients. So you multiply everything by 1/4 and you will get 50 g of butter, 45 g of caster sugar, and 5 g of chocolate chips. If my explanation is not clear enough, there is work to show you the step.