The answer is $10$ and I don't see what this has to do with linear algebra.
$9$ is not enough because it could be that you picked $3$ of each fruit.
However $10$ is enough. If by contradiction you picked $10$ fruits yet you didn't pick $4$ of any given fruit then you must've only picked up to $3$ of each but then you only picked up to $9$ fruits by contradiction.