jill bought 32 orange and apple slices. There were three times as many orange slices as there were apple slices. how many of each did she have

Let a = apple slices.

a + 3a = 32

4a = 32

a = 8