So we are told that each marble bag has 5 orange marbles for every 6 purple ones. Then the proportion of orange marbles is:

This proportion has to be the same for any amount of marbles in a bag. If we use x for the number of purple marbles we are looking for we have that the proportion of orange marbles in a bag with 30 orange marbles is given by:

As I stated before, this proportion has always the same value so we can equalize both expressions:

We need to solve this for x. We can multiply x to both sides of the equation:

Then we multiply both sides by 6/5:

Then the answer is that the bag contains 36 purple marbles.