Solution: Suppose there are X people who like bananas and apples.
Then according to the meaning of the question, the equation can be listed as,
7+5-x= 10
-x= 10-7-5
-x=-2
x=2
There are two people who like bananas and apples.
Extended data:
Solutions of one-dimensional linear equations
There are five steps to solve a linear equation with one variable, namely, denominating, removing brackets, shifting terms, merging similar terms, and the transformation coefficient is 1.
For example: (x+3)/6=(x+7)/ 10.
Solution: 10*(x+3)=6(x+7)
10x+30=6x+42
10x-6x=42-30
4x= 12
x=3
Baidu encyclopedia-unary linear equation