There are 40 students in a class. 25 students like mangoes and 18 like rambutans. 7 students like neither fruit. How many students like both fruits?
Credit: Original questions written for Kosoma to the MoEYS curriculum and checked by an independent solve.