Hey !
You did the right thing, but failed to think about the case where he takes a heart out of the first box (A).
In that case, there would still be a chance that he gets a star out of the second box as it already has 2 stars in there.
You have to do the same calculation for the second option and add the results for the two possibilities