There are 40 students in Joan’s class. She plans to invite them to her birthday party. She asked them to suggest a theme for her party. Three of every eight students suggested a rainbow theme party. How many students suggested a rainbow themed party?

Three out of every eight students suggested a rainbow theme party, so the total number of students who suggested a rainbow theme party is 3/8 x 40 = <<3/8*40=15>>15 students. Answer: \boxed{15}.

To find out how many students suggested a rainbow theme party, we can set up a proportion:

3/8 = x/40

We can solve this proportion by cross-multiplying:

8x = 3 * 40

8x = 120

Dividing both sides of the equation by 8, we get:

x = 120 / 8

x = 15

Therefore, 15 students suggested a rainbow themed party.

To find the number of students who suggested a rainbow themed party, we can use a proportion.

We know that 3 out of every 8 students suggested a rainbow theme. So, we can set up the proportion:

3/8 = x/40

To find the value of 'x', we can cross multiply:

8 * x = 3 * 40

8x = 120

Divide both sides of the equation by 8:

8x/8 = 120/8

x = 15

Therefore, 15 students suggested a rainbow themed party.