One time I had to buy 40 watermelons for a local festival, and ended up having to get them from the grocery store. Didn't want to bruise them, so I filled 4 carts up and made multiple trips to the checkout. For a moment there, I was the lady from all the math problems.
You cut one pineapple, share it with 6 friends, and goo around looking for people that want the other 36 ones. Or maybe reserve 2 others for cutting through the week, so you only have to find enough people to get 34 pineapples from you. (The closest supermarket from here doesn't keep as many in storage.)
Have your math classes in fundamental school teach you how to find people that want pineapples?
I was at a networking event with work people. They had a big tray of fruit and cheese that included a whole, unsliced pineapple displayed on the center, not being used. The caterers thought my request was wacky, but agreed to let me take the pineapple. The people I was with shamed me out of taking it, and I reluctantly dropped the pineapple. The ordeal became something we still reminisce about. I found a random pineapple on my desk one day. And we share pineapple-themed pictures when we happen upon something.