Combinatorics Composition of generating fuctions

41 Views Asked by At

enter image description here

I can follow through the whole problem except I don't understand how to get $A(x)$.

Can you run me through how to get $A(x)$?

This is my attempt,

$3$ represents the options: poisonous, slightly poisonous, not poisonous

$2$ represents the options: black or orange

$k-2$ given, # of spots

How can I think of this?