The supermarket bought a batch of apples, the number of Apple baskets accounted for 1 / 3 of the total number of baskets, and the number of pear baskets accounted for the remaining 1 / 3. There are 30 boxes of apples and pears, how many fruits are there in total

The supermarket bought a batch of apples, the number of Apple baskets accounted for 1 / 3 of the total number of baskets, and the number of pear baskets accounted for the remaining 1 / 3. There are 30 boxes of apples and pears, how many fruits are there in total

1/3X+1/3(x-1/3x)=30 X=54