A young girl in a pink shirt playing with her barbie.
The young girl is playing with a toy.
Barbie is a toy for a young girl.
A barbie is considered a toy. Therefore the girl is playing with a toy.
barbie is inferred as toy