Of the 5 cakes with F1 one also has F2. Hence there are 4 cakes that have F1 only.

Of the 10 cajkes with F2 one also has F1. Henece there are 9 cakes that have F2 only.

Try the calculation again, this time based on 4 F1-only cakes and 9 F2-only cakes.