Alright, lets get started.
Suppose there were x unripe oranges.
there were 18 more ripe oranges than unripe oranges
Means number of ripe oranges = x + 18
There were 24 rotten oranges too.
So, the sum of all oranges will be =

So, the sum of all oranges will be =

As per given in question, sum of total oranges are 84.
Hence making them equal

Subtracting 42 from both sides


Dividing 2 in both sides

x = 21
Means number of unripe oranges = 21
Means number of ripe oranges = 21 + 18 = 39
Number of rotten oranges = 24
the ratio of the number of ripe oranges to the number of rotten oranges to the number of unripe oranges =
: Answer
Hope it will answer :)