There are 35/5 = <<35/5=7>>7 light bulbs to every fifth.
7*3 = <<7*3=21>>21 lightbulbs in the kitchen are broken.
There are 35-21 = <<35-21=14>>14 light bulbs in the kitchen that are not broken.
There are 10*3 = <<10*3=30>>30 light bulbs in the foyer in total.
There are 30-10 = <<30-10=20>>20 light bulbs in the foyer that are not broken.
There are 14+20 = <<14+20=34>>34 light bulbs that are not broken in both the foyer and kitchen.
#### 34