5 yellow apples
Step-by-step explanation:
Pears = p ; apples = a
p = 8 ; let Number of apples = x
All fruits are either green or yellow
Total green fruits = x - 3
Number of yellow pears = 6
Green pears = total pears - yellow pears
Green pears = 8 - 6
Green pears = 2
Green fruits = green pears + green apples
x - 3 = 2 + green apples
Green apples = x - 3 - 2
Green apples = x - 5
Apples = green apples + yellow apples
Yellow apples = apples - green apples
Yellow apples = x - (x - 5)
Yellow apples = x - x + 5
Yellow apples = 5
Hence, there are 5 yellow apples