Detailed Instructions: The task is to generate the correct answer for a given math problem.
Problem:Problem: 40 persons like apple . 7 like orange and mango dislike apple . 10 like mango and apple and dislike orange . 3 like all . how many people like apple ?
Solution:
46