emma had n't been able to eat pineapple ever since she was ten , when her then foster mother , shaina , had won a lifetime supply of canned pineapple after submitting a pineapple upside-down cake recipe to a cooking magazine .